OSDN Git Service

e4235388debf9d231574673383ccac3337899e4e
[lfsbookja/lfsja-git.git] / src / chapter08 / python.ch
1 %
2 % This is part of LFSbookja package.
3 %
4 % This is a CTIE change file for the original XML source of the LFSbook.
5 %
6 @x
7 <?xml version="1.0" encoding="ISO-8859-1"?>
8 @y
9 <?xml version="1.0" encoding="UTF-8"?>
10 @z
11
12 @x
13     <para>The Python 3 package contains the Python development environment. It
14     is useful for object-oriented programming, writing scripts, prototyping
15     large programs, or developing entire applications.</para>
16 @y
17     <para>
18     Python 3 パッケージは Python 開発環境を提供します。
19     オブジェクト指向プログラミング、スクリプティング、大規模プログラムのプロトタイピング、アプリケーション開発などに有用なものです。
20     </para>
21 @z
22
23 @x
24     <title>Installation of Python 3</title>
25 @y
26     <title>&InstallationOf1;Python 3&InstallationOf2;</title>
27 @z
28
29 @x
30     <para>Prepare Python for compilation:</para>
31 @y
32     <para>&PreparePackage1;Python&PreparePackage2;</para>
33 @z
34
35 @x
36       <title>The meaning of the configure options:</title>
37 @y
38       <title>&MeaningOfOption1;configure&MeaningOfOption2;</title>
39 @z
40
41 @x --with-system-expat
42         <para>This switch enables linking against system version of
43         <application>Expat</application>.</para>
44 @y
45         <para>
46         本スイッチは、システムにインストールされている <application>Expat</application> をリンクすることを指示します。
47         </para>
48 @z
49
50 @x --with-system-ffi
51         <para>This switch enables linking against system version of
52         <application>libffi</application>.</para>
53 @y
54         <para>
55         本スイッチは、システムにインストールされている <application>libffi</application> をリンクすることを指示します。
56         </para>
57 @z
58
59 @x --with-ensurepip=yes
60         <para>This switch enables building <command>pip</command> and
61         <command>setuptools</command> packaging programs.</para>
62 @y
63         <para>
64         本スイッチは <command>pip</command> コマンドと、パッケージングプログラム <command>setuptools</command> をビルドすることを指示します。
65         </para>
66 @z
67
68 @x --enable-optimizations
69         <para>This switch enables stable, but expensive, optimizations.</para>
70 @y
71         <para>
72         本スイッチは安定的ではあるものの高くつく最適化を有効にします。
73         </para>
74 @z
75
76 @x
77     <para>Compile the package:</para>
78 @y
79     <para>&CompileThePackage;</para>
80 @z
81
82 @x
83     <para>Running the tests at this point is not recommended.  The
84     tests are known to hang indefinitely in the partial LFS environment.
85     If desired, the tests can be rerun at the end of this chapter or
86     when Python 3 is reinstalled in BLFS.  To run the tests anyway,
87     issue <command>make test</command>.</para>
88 @y
89     <para>
90     この時点においてテスト実行することはお勧めしません。
91     部分的にしか仕上がっていない LFS 環境では安定せずハングすることがあります。
92     テストを必要とする場合は、本章を一番最後まで進めてから再度実行するか、あるいは BLFS において Python 3 をインストール際に行います。
93     そうではなくここでテスト実行をするなら <command>make test</command> を実行します。
94     </para>
95 @z
96
97 @x
98     <para>Install the package:</para>
99 @y
100     <para>&InstallThePackage;</para>
101 @z
102
103 @x
104     <para>If desired, install the preformatted documentation:</para>
105 @y
106     <para>
107     必要なら、整形済みドキュメントをインストールします。
108     </para>
109 @z
110
111 @x
112       <title>The meaning of the documentation install commands:</title>
113 @y
114       <title>&MeaningOfCommand1;ドキュメント install&MeaningOfCommand2;</title>
115 @z
116
117 @x
118       <term><option>--no-same-owner</option> and <option>--no-same-permissions</option></term>
119 @y
120       <term><option>--no-same-owner</option> と <option>--no-same-permissions</option></term>
121 @z
122 @x
123         <para>Ensure the installed files have the correct ownership and
124         permissions.  Without these options, using <application>tar</application>
125         will install the package files with the upstream creator's values.
126         </para>
127 @y
128         <para>
129         インストールするファイルの所有者とパーミッションを適切に設定します。
130         このオプションがないと <application>tar</application> によって展開されるファイルは、アップストリームが作り出した値になってしまうためです。
131         </para>
132 @z
133
134 @x
135     <title>Contents of Python 3</title>
136 @y
137     <title>&ContentsOf1;Python 3&ContentsOf2;</title>
138 @z
139
140 @x
141       <segtitle>Installed Programs</segtitle>
142       <segtitle>Installed Library</segtitle>
143       <segtitle>Installed Directories</segtitle>
144 @y
145       <segtitle>&InstalledProgram;</segtitle>
146       <segtitle>&InstalledLibrary;</segtitle>
147       <segtitle>&InstalledDirectory;</segtitle>
148 @z
149
150 @x
151         <seg>
152           2to3, idle3, pip3, pydoc3, python3, and python3-config
153         </seg>
154         <seg>
155           libpython&python-minor;.so and libpython3.so
156         </seg>
157         <seg>
158           /usr/include/python&python-minor;,
159           /usr/lib/python3, and
160           /usr/share/doc/python-&python-version;
161         </seg>
162 @y
163         <seg>
164           2to3, idle3, pip3, pydoc3, python3, python3-config
165         </seg>
166         <seg>
167           libpython&python-minor;.so, libpython3.so
168         </seg>
169         <seg>
170           /usr/include/python&python-minor;,
171           /usr/lib/python3,
172           /usr/share/doc/python-&python-version;
173         </seg>
174 @z
175
176 @x
177       <bridgehead renderas="sect3">Short Descriptions</bridgehead>
178 @y
179       <bridgehead renderas="sect3">&ShortDescriptions;</bridgehead>
180 @z
181
182 @x 2to3
183             is a <application>Python</application> program that reads
184             <application>Python 2.x</application> source code and applies a
185             series of fixes to transform it into
186             valid <application>Python 3.x</application> code
187 @y
188             <application>Python 2.x</application> のソースコードを読み込み、種々の変更を行って <application>Python 3.x</application> 用の適正なソースコードに変換するための <application>Python</application> プログラムです
189 @z
190
191 @x idle3
192             is a wrapper script that opens a <application>Python</application>
193             aware GUI editor. For this script to run, you must have installed
194             <application>Tk</application> before Python so that the Tkinter
195             Python module is built
196 @y
197             <application>Python</application> に特化した GUI エディターを起動するラッパースクリプト。
198             このスクリプトを実行するには、Python より前に <application>Tk</application> をインストールして、Python モジュールである Tkinter をビルドしておく必要があります。
199 @z
200
201 @x pip3
202             The package installer for Python. You can use pip to install
203             packages from Python Package Index and other indexes
204 @y
205             Python のパッケージインストーラー。
206             この pip を使って Python Package Index などのインデックスサイトから各種パッケージをインストールできます。
207 @z
208
209 @x pydoc3
210             is the <application>Python</application> documentation tool
211 @y
212             <application>Python</application> ドキュメントツール。
213 @z
214
215 @x python3
216             is an interpreted, interactive, object-oriented programming
217             language
218 @y
219             インタープリターであり、対話的なオブジェクト指向プログラミング言語。
220 @z