Changeset 03d30cf for general/prog/python3.xml
- Timestamp:
- 04/07/2013 10:08:27 AM (11 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 388d294
- Parents:
- b09c33f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/python3.xml
rb09c33f2 r03d30cf 8 8 "http://www.python.org/ftp/python/&python3-version;/Python-&python3-version;.tar.xz"> 9 9 <!ENTITY python3-download-ftp " "> 10 <!ENTITY python3-md5sum " 2e7533b4009ac4adae62a7797a442e7a">11 <!ENTITY python3-size "1 1.2 MB">12 <!ENTITY python3-buildsize " 141 MB (additional 32 MB for the testsuite)">13 <!ENTITY python3-time "1.2 SBU ( additional 2.2 SBU to run the testsuite)">10 <!ENTITY python3-md5sum "993232d9f4d9b4863cc1ec69a792e9cd"> 11 <!ENTITY python3-size "12 MB"> 12 <!ENTITY python3-buildsize "260 MB (not including the testsuite)"> 13 <!ENTITY python3-time "1.2 SBU (not including the testsuite)"> 14 14 15 15 <!ENTITY python3htmldoc-download-http 16 16 "http://docs.python.org/ftp/python/doc/&python3-version;/python-&python3-version;-docs-html.tar.bz2"> 17 <!ENTITY python3htmldoc-md5sum " d8de7264eb5b03b54044825b765324c7">17 <!ENTITY python3htmldoc-md5sum "e730def6cc4d6dddb076aae82661b6d6"> 18 18 <!ENTITY python3htmldoc-size "4.6 MB"> 19 19 ]> … … 30 30 31 31 <indexterm zone="python3"> 32 <primary sortas="a-Python3">Python </primary>32 <primary sortas="a-Python3">Python3</primary> 33 33 </indexterm> 34 34 35 35 <sect2 role="package"> 36 <title>Introduction to Python </title>37 38 <para> 39 The <application>Python </application> package contains the36 <title>Introduction to Python 3</title> 37 38 <para> 39 The <application>Python 3</application> package contains the 40 40 <application>Python</application> development environment. 41 41 This is useful for object-oriented programming, writing scripts, … … 99 99 </itemizedlist> 100 100 101 <bridgehead renderas="sect3">Python Dependencies</bridgehead>101 <bridgehead renderas="sect3">Python 3 Dependencies</bridgehead> 102 102 103 103 <bridgehead renderas="sect4">Recommended</bridgehead> … … 127 127 128 128 <sect2 role="installation"> 129 <title>Installation of Python </title>130 131 <para> 132 Install <application>Python </application> by running the following129 <title>Installation of Python 3</title> 130 131 <para> 132 Install <application>Python 3</application> by running the following 133 133 commands: 134 134 </para> 135 135 136 <screen><userinput>sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py && 137 ./configure --prefix=/usr \ 136 <screen><userinput>./configure --prefix=/usr \ 138 137 --enable-shared \ 139 138 --with-system-expat \ … … 142 141 143 142 <para> 144 To test the results, issue: <command>make test</command>. Note that 145 if you have an existing <application>Python</application> installation 146 which includes the <application>PyXML</application> module, the tests could 147 produce a segmentation fault. 143 To test the results, issue: <command>make test</command>. 148 144 </para> 149 145 … … 157 153 158 154 <para> 159 There is no documentation installed using the instructions above. 160 See the <filename>Doc/README.txt</filename> file in the source 161 distribution for instructions on how to create the html. Alternatively, 162 you can download preformatted documentation from 163 <ulink url="http://docs.python.org/download.html"/>. 164 </para> 165 166 <para> 167 In order to use the <command>help ('name_string')</command> feature 168 of the <command>python</command> interpreter with some statements and 169 keywords, you must download (or create) the optional HTML documentation 170 and install it. If you downloaded the HTML docs, issue the following 171 commands as the <systemitem class="username">root</systemitem> user: 172 </para> 173 174 <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/Python-&python3-version;/html && 155 If you have downloaded the preformatted documentation from 156 <ulink url="http://docs.python.org/download.html"/>, install it 157 as the <systemitem class="username">root</systemitem> user: 158 </para> 159 160 <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/python-&python3-version;/html && 175 161 tar --strip-components=1 \ 176 162 --no-same-owner \ 177 163 --no-same-permissions \ 178 -C /usr/share/doc/ Python-&python3-version;/html \164 -C /usr/share/doc/python-&python3-version;/html \ 179 165 -xvf ../python-&python3-version;-docs-html.tar.bz2</userinput></screen> 180 166 … … 183 169 <sect2 role="commands"> 184 170 <title>Command Explanations</title> 185 186 <para>187 <command>sed -i "s/ndbm_libs = ..." setup.py</command>: This command188 is used to fix a build problem with the <application>GDBM</application>189 library.190 </para>191 171 192 172 <para> … … 217 197 218 198 <sect2 role="configuration"> 219 <title>Configuring Python </title>220 221 <para> 222 In order for <command>python </command> to find the installed199 <title>Configuring Python 3</title> 200 201 <para> 202 In order for <command>python3</command> to find the installed 223 203 documentation, you must add the following environment variable to 224 204 individual user's or the system's profile: 225 205 </para> 226 206 227 <screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/ Python-&python3-version;/html</userinput></screen>207 <screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/python-&python3-version;/html</userinput></screen> 228 208 229 209 </sect2> … … 258 238 </seg> 259 239 <seg> 260 libpython&python3-majorver;m.so, libpython3.so and numerous 261 modules installed in /usr/lib/python&python3-majorver; 240 libpython&python3-majorver;m.so and libpython3.so 262 241 </seg> 263 242 <seg>
Note:
See TracChangeset
for help on using the changeset viewer.