|
@@ -23,9 +23,11 @@
|
|
|
<sect2 role="package">
|
|
|
<title/>
|
|
|
|
|
|
- <para>The Python 3 package contains the Python development environment. It
|
|
|
+ <para>Python 3 软件包包含 Python 开发环境。它被用于面向对象编程、
|
|
|
+ 编写脚本、为大型程序建立原型或开发完整的应用。</para>
|
|
|
+ <!--para>The Python 3 package contains the Python development environment. It
|
|
|
is useful for object-oriented programming, writing scripts, prototyping
|
|
|
- large programs or developing entire applications.</para>
|
|
|
+ large programs or developing entire applications.</para-->
|
|
|
|
|
|
<segmentedlist>
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
@@ -40,7 +42,7 @@
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
- <title>安装Python 3</title>
|
|
|
+ <title>安装 Python 3</title>
|
|
|
|
|
|
<para>准备安装 Python:</para>
|
|
|
|
|
@@ -51,29 +53,29 @@
|
|
|
--with-ensurepip=yes</userinput></screen>
|
|
|
|
|
|
<variablelist>
|
|
|
- <title>The meaning of the configure options:</title>
|
|
|
+ <title>配置选项的含义:</title>
|
|
|
|
|
|
<varlistentry>
|
|
|
<term><parameter>--with-system-expat</parameter></term>
|
|
|
<listitem>
|
|
|
- <para>This switch enables linking against system version of
|
|
|
- <application>Expat</application>.</para>
|
|
|
+ <para>该选项允许链接到系统已经安装的
|
|
|
+ <application>Expat</application>。</para>
|
|
|
</listitem>
|
|
|
</varlistentry>
|
|
|
|
|
|
<varlistentry>
|
|
|
<term><parameter>--with-system-ffi</parameter></term>
|
|
|
<listitem>
|
|
|
- <para>This switch enables linking against system version of
|
|
|
- <application>libffi</application>.</para>
|
|
|
+ <para>该选项允许链接到系统已经安装的
|
|
|
+ <application>libffi</application>。</para>
|
|
|
</listitem>
|
|
|
</varlistentry>
|
|
|
|
|
|
<varlistentry>
|
|
|
<term><parameter>--with-ensurepip=yes</parameter></term>
|
|
|
<listitem>
|
|
|
- <para>This switch enables building <command>pip</command> and
|
|
|
- <command>setuptools</command> packaging programs.</para>
|
|
|
+ <para>该选项启用 <command>pip</command> 和
|
|
|
+ <command>setuptools</command> 包管理程序的构建。</para>
|
|
|
</listitem>
|
|
|
</varlistentry>
|
|
|
|
|
@@ -83,8 +85,8 @@
|
|
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
|
|
- <para>The test suite requires TK and and X Windows session and cannot
|
|
|
- be run until Python 3 is reinstalled in BLFS.</para>
|
|
|
+ <para>测试套件需要 Tk 和 X 窗口会话的支持,
|
|
|
+ 必须在 BLFS 中重新安装 Python 3 后才能运行。</para>
|
|
|
|
|
|
<para>安装该软件包:</para>
|
|
|
|
|
@@ -93,19 +95,18 @@ chmod -v 755 /usr/lib/libpython3.6m.so
|
|
|
chmod -v 755 /usr/lib/libpython3.so</userinput></screen>
|
|
|
|
|
|
<variablelist>
|
|
|
- <title>The meaning of the install commands:</title>
|
|
|
+ <title>安装命令的含义:</title>
|
|
|
|
|
|
<varlistentry>
|
|
|
<term><command>chmod -v 755 /usr/lib/libpython3.{6m.,}so</command></term>
|
|
|
<listitem>
|
|
|
- <para>Fix permissions for libraries to be consistent with other
|
|
|
- libraries.</para>
|
|
|
+ <para>修正库文件访问权限,使之和其他库文件一致。</para>
|
|
|
</listitem>
|
|
|
</varlistentry>
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
- <para>If desired, install the preformatted documentation:</para>
|
|
|
+ <para>如果需要的话,安装预先格式化的文档:</para>
|
|
|
|
|
|
<screen><userinput remap="install">install -v -dm755 /usr/share/doc/python-&python-version;/html
|
|
|
|
|
@@ -116,14 +117,14 @@ tar --strip-components=1 \
|
|
|
-xvf ../python-&python-version;-docs-html.tar.bz2</userinput></screen>
|
|
|
|
|
|
<variablelist>
|
|
|
- <title>The meaning of the documentation install commands:</title>
|
|
|
+ <title>文档安装命令的含义:</title>
|
|
|
|
|
|
<varlistentry>
|
|
|
- <term><option>--no-same-owner</option> and --no-same-permissions</term>
|
|
|
+ <term><option>--no-same-owner</option> 和 --no-same-permissions</term>
|
|
|
<listitem>
|
|
|
- <para>Ensure the installed files have the correct ownership and
|
|
|
- prermissions. Without these options, using <application>tar</application>
|
|
|
- will install the package files with the upstream creator's values.
|
|
|
+ <para>保证安装的文件拥有正确的所有者和权限位。
|
|
|
+ <application>tar</application> 在没有这些选项的时候,
|
|
|
+ 会以上游开发者使用的用户和权限位安装文件。
|
|
|
</para>
|
|
|
</listitem>
|
|
|
</varlistentry>
|
|
@@ -145,10 +146,10 @@ tar --strip-components=1 \
|
|
|
2to3, idle3, pydoc3, python3, python3-config, pyvenv
|
|
|
</seg>
|
|
|
<seg>
|
|
|
- libpython3.6m.so and libpython3.so
|
|
|
+ libpython3.6m.so 和 libpython3.so
|
|
|
</seg>
|
|
|
<seg>
|
|
|
- /usr/include/python3.6m, /usr/lib/python3 and
|
|
|
+ /usr/include/python3.6m, /usr/lib/python3 以及
|
|
|
/usr/share/doc/python-&python-version;
|
|
|
</seg>
|
|
|
</seglistitem>
|
|
@@ -163,10 +164,10 @@ tar --strip-components=1 \
|
|
|
<term><command>2to3</command></term>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- is a <application>Python</application> program that reads
|
|
|
- <application>Python 2.x</application> source code and applies a
|
|
|
- series of fixes to transform it into valid
|
|
|
- <application>Python 3.x</application> code.
|
|
|
+ 是一个 <application>Python</application> 程序,读取
|
|
|
+ <application>Python 2.x</application>
|
|
|
+ 源代码并对它进行一系列修正,转换成合法的
|
|
|
+ <application>Python 3.x</application> 源代码。
|
|
|
</para>
|
|
|
<indexterm zone="ch-system-Python">
|
|
|
<primary sortas="b-2to3">2to3</primary>
|
|
@@ -178,10 +179,9 @@ tar --strip-components=1 \
|
|
|
<term><command>idle3</command></term>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- is a wrapper script that opens a <application>Python</application>
|
|
|
- aware GUI editor. For this script to run, you must have installed
|
|
|
- <application>Tk</application> before Python so that the Tkinter
|
|
|
- Python module is built.
|
|
|
+ 一个封装脚本,启动支持 <application>Python</application>
|
|
|
+ 语法的 GUI 文本编辑器。要运行这个脚本,必须在 Python 之前安装
|
|
|
+ <application>Tk</application> ,从而构建 Tkinter Python 模块。
|
|
|
</para>
|
|
|
<indexterm zone="ch-system-Python">
|
|
|
<primary sortas="b-idle3">idle3</primary>
|
|
@@ -193,7 +193,7 @@ tar --strip-components=1 \
|
|
|
<term><command>pydoc3</command></term>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- is the <application>Python</application> documentation tool.
|
|
|
+ 是 <application>Python</application> 文档工具。
|
|
|
</para>
|
|
|
<indexterm zone="ch-system-Python">
|
|
|
<primary sortas="b-pydoc3">pydoc3</primary>
|
|
@@ -205,8 +205,7 @@ tar --strip-components=1 \
|
|
|
<term><command>python3</command></term>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- is an interpreted, interactive, object-oriented programming
|
|
|
- language.
|
|
|
+ 是一个解释性、交互性、面向对象的程序设计语言
|
|
|
</para>
|
|
|
<indexterm zone="ch-system-Python">
|
|
|
<primary sortas="b-python3">python3</primary>
|
|
@@ -218,8 +217,8 @@ tar --strip-components=1 \
|
|
|
<term><command>pyvenv</command></term>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- creates virtual <application>Python</application> environments in
|
|
|
- one or more target directories.
|
|
|
+ 在一个或多个目标目录创建 <application>Python</application>
|
|
|
+ 虚拟环境
|
|
|
</para>
|
|
|
<indexterm zone="ch-system-Python">
|
|
|
<primary sortas="b-pyvenv">pyvenv</primary>
|