@@ -188,14 +188,17 @@ msgid ""
188188":file:`__init__.py` files.) Thus, if the default layout grows a sub-"
189189"package::"
190190msgstr ""
191+ "如果你有子包,则它们必须显式列在 ``packages`` 中,但是 ``package_dir`` "
192+ "中的任何条目会自动扩展到子包。(也就是说,Distutils *不会* 扫描你的源码树,而是尝试通过查找 :file:`__init__.py` "
193+ "文件,来弄清哪些目录与 Python 包关联。)这样,如果默认排布产生一个子包:"
191194
192195#: ../../distutils/examples.rst:188
193196msgid "then the corresponding setup script would be ::"
194- msgstr ""
197+ msgstr "则相应的配置脚本是: "
195198
196199#: ../../distutils/examples.rst:200
197200msgid "Single extension module"
198- msgstr ""
201+ msgstr "单个扩展模块 "
199202
200203#: ../../distutils/examples.rst:202
201204msgid ""
@@ -209,7 +212,7 @@ msgstr ""
209212msgid ""
210213"If the :mod:`foo` extension belongs in the root package, the setup script "
211214"for this could be ::"
212- msgstr ""
215+ msgstr "如果 :mod:`foo` 扩展属于根包,则配置脚本可以是: "
213216
214217#: ../../distutils/examples.rst:221
215218msgid ""
@@ -224,7 +227,7 @@ msgstr ""
224227
225228#: ../../distutils/examples.rst:234
226229msgid "Checking a package"
227- msgstr ""
230+ msgstr "检查一个包 "
228231
229232#: ../../distutils/examples.rst:236
230233msgid ""
@@ -240,11 +243,11 @@ msgstr ""
240243
241244#: ../../distutils/examples.rst:242
242245msgid "Let's take an example with a simple script::"
243- msgstr ""
246+ msgstr "我们来用单个脚本举例: "
244247
245248#: ../../distutils/examples.rst:248
246249msgid "Running the ``check`` command will display some warnings:"
247- msgstr ""
250+ msgstr "运行 ``check`` 命令会显示一些警告: "
248251
249252#: ../../distutils/examples.rst:259
250253msgid ""
@@ -255,7 +258,7 @@ msgstr ""
255258
256259#: ../../distutils/examples.rst:263
257260msgid "For example, if the :file:`setup.py` script is changed like this::"
258- msgstr ""
261+ msgstr "比如,如果 :file:`setup.py` 脚本改成: "
259262
260263#: ../../distutils/examples.rst:278
261264msgid ""
@@ -265,7 +268,7 @@ msgstr ""
265268
266269#: ../../distutils/examples.rst:289
267270msgid "Reading the metadata"
268- msgstr ""
271+ msgstr "读取元数据 "
269272
270273#: ../../distutils/examples.rst:291
271274msgid ""
@@ -293,9 +296,11 @@ msgid ""
293296":class:`distutils.dist.DistributionMetadata` class and its "
294297":func:`read_pkg_file` method::"
295298msgstr ""
299+ "你可以读回静态文件,使用 :class:`distutils.dist.DistributionMetadata` 类和它的 "
300+ ":func:`read_pkg_file` 方法:"
296301
297302#: ../../distutils/examples.rst:324
298303msgid ""
299304"Notice that the class can also be instantiated with a metadata file path to "
300305"loads its values::"
301- msgstr ""
306+ msgstr "注意类也可以用元数据文件载入值,来示例化: "
0 commit comments