Changeset 03d30cf for general/prog/python2.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/python2.xml
rb09c33f2 r03d30cf 8 8 "http://www.python.org/ftp/python/&python2-version;/Python-&python2-version;.tar.xz"> 9 9 <!ENTITY python2-download-ftp " "> 10 <!ENTITY python2-md5sum "62 c4c1699170078c469f79ddfed21bc0">11 <!ENTITY python2-size " 9.6MB">10 <!ENTITY python2-md5sum "62704ea0f125923208d84ff0568f7d50"> 11 <!ENTITY python2-size "12 MB"> 12 12 <!ENTITY python2-buildsize "235 MB (not including the test suite)"> 13 <!ENTITY python2-time "1. 1SBU (not including the test suite)">13 <!ENTITY python2-time "1.0 SBU (not including the test suite)"> 14 14 15 15 <!ENTITY python2htmldoc-download-http 16 16 "http://docs.python.org/ftp/python/doc/&python2-version;/python-&python2-version;-docs-html.tar.bz2"> 17 <!ENTITY python2htmldoc-md5sum " 101c13d39f76fd6706aac3a9196b2f01">18 <!ENTITY python2htmldoc-size "4. 2MB">17 <!ENTITY python2htmldoc-md5sum "45be073ad81e1b2f6ad1fa25132f60c6"> 18 <!ENTITY python2htmldoc-size "4.3 MB"> 19 19 ]> 20 20 … … 101 101 </itemizedlist> 102 102 103 <bridgehead renderas="sect3">Additional Patches</bridgehead> 104 <itemizedlist spacing="compact"> 105 <listitem> 106 <para> 107 Required patch: 108 <ulink url="&patch-root;/Python-&python2-version;-bsddb_fix-1.patch"/> 109 </para> 110 </listitem> 111 </itemizedlist> 112 113 <bridgehead renderas="sect3">Python Dependencies</bridgehead> 103 <bridgehead renderas="sect3">Python 2 Dependencies</bridgehead> 114 104 115 105 <bridgehead renderas="sect4">Recommended</bridgehead> … … 122 112 <bridgehead renderas="sect4">Optional</bridgehead> 123 113 <para role="optional"> 124 <xref linkend="bluez"/> and 125 <ulink url="http://sphinx.pocoo.org/">Sphinx</ulink> 114 <xref linkend="bluez"/> 126 115 </para> 127 116 … … 140 129 141 130 <sect2 role="installation"> 142 <title>Installation of Python </title>143 144 <para> 145 Install <application>Python </application> by running the following131 <title>Installation of Python 2</title> 132 133 <para> 134 Install <application>Python 2</application> by running the following 146 135 commands: 147 136 </para> 148 137 149 <screen><userinput>sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py && 150 patch -Np1 -i ../Python-&python2-version;-bsddb_fix-1.patch && 151 ./configure --prefix=/usr \ 138 <screen><userinput>./configure --prefix=/usr \ 152 139 --enable-shared \ 153 140 --with-system-expat \ … … 161 148 162 149 <para> 163 In order to use the <command>help ('name_string')</command> feature of the164 <command>python</command> interpreter with some statements and keywords,165 you must create or download the optional HTML documentation.166 </para>167 168 <para>169 If you have installed <ulink url="http://sphinx.pocoo.org/">Sphinx</ulink>170 and wish to create the HTML documentation:171 </para>172 173 <screen><userinput>make -C Doc html</userinput></screen>174 175 <para>176 150 Now, as the <systemitem class="username">root</systemitem> user: 177 151 </para> … … 181 155 182 156 <para> 183 If you created the html documentation with 184 <application>Sphinx</application> then install it as the 185 <systemitem class="username">root</systemitem> user: 186 </para> 187 188 <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/Python-&python2-version; && 189 cp -rfv Doc/build/html/* /usr/share/doc/python-&python2-version;</userinput></screen> 190 191 <para> 192 Alternatively, you can download preformatted documentation from 193 <ulink url="http://docs.python.org/download.html"/> and install it as the 194 <systemitem class="username">root</systemitem> user: 195 </para> 196 197 <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/Python-&python2-version; && 198 tar --strip-components=1 -C /usr/share/doc/Python-&python2-version; \ 157 If you have downloaded the preformatted documentation from 158 <ulink url="http://docs.python.org/download.html"/>, install it 159 as the <systemitem class="username">root</systemitem> user: 160 </para> 161 162 <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/python-&python2-version; && 163 tar --strip-components=1 -C /usr/share/doc/python-&python2-version; \ 199 164 -xvf ../python-&python2-version;-docs-html.tar.bz2 && 200 find /usr/share/doc/ Python-&python2-version; -type d -exec chmod 0755 {} \; &&201 find /usr/share/doc/ Python-&python2-version; -type f -exec chmod 0644 {} \;</userinput></screen>165 find /usr/share/doc/python-&python2-version; -type d -exec chmod 0755 {} \; && 166 find /usr/share/doc/python-&python2-version; -type f -exec chmod 0644 {} \;</userinput></screen> 202 167 </sect2> 203 168 … … 206 171 207 172 <para> 208 <command>sed -i "s/ndbm_libs = ..." setup.py</command>: This command is209 used to fix a build problem with the <application>GDBM</application>210 library.211 </para>212 213 <para>214 173 <option>--with-system-expat</option>: This switch enables linking against 215 174 system version of <application>Expat</application>. Remove if you have 216 not installed recommended dependency<xref linkend="expat"/>.175 not installed <xref linkend="expat"/>. 217 176 </para> 218 177 … … 220 179 <option>--with-system-ffi</option>: This switch enables linking against 221 180 system version of <application>libffi</application>. Remove if you have 222 not installed recommended dependency<xref linkend="libffi"/>.181 not installed <xref linkend="libffi"/>. 223 182 </para> 224 183 … … 251 210 </para> 252 211 253 <screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/ Python-&python2-version;</userinput></screen>212 <screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/python-&python2-version;</userinput></screen> 254 213 255 214 </sect2> … … 260 219 <segmentedlist> 261 220 <segtitle>Installed Programs</segtitle> 262 <segtitle>Installed Librar ies</segtitle>221 <segtitle>Installed Library</segtitle> 263 222 <segtitle>Installed Directories</segtitle> 264 223 265 224 <seglistitem> 266 225 <seg> 267 2to3, pydoc, python, python-config, python&python2-majorver;, 268 python&python2-majorver;-config, smtpd.py, and optionally if 269 <application>Tk</application> is installed, idle 226 2to3, pydoc, python, python-config, python2, python2-config, 227 python&python2-majorver;, python&python2-majorver;-config, 228 smtpd.py, and optionally if <application>Tk</application> 229 is installed, idle 270 230 </seg> 271 231 <seg> 272 libpython&python2-majorver;.so and numerous modules installed in 273 /usr/lib/python&python2-majorver;/lib-dynload 232 libpython&python2-majorver;.so 274 233 </seg> 275 234 <seg> … … 300 259 </varlistentry> 301 260 302 <varlistentry id="idle 2">261 <varlistentry id="idle"> 303 262 <term><command>idle</command></term> 304 263 <listitem> … … 307 266 aware GUI editor. 308 267 </para> 309 <indexterm zone="python2 idle 2">310 <primary sortas="b-idle 2">idle</primary>268 <indexterm zone="python2 idle"> 269 <primary sortas="b-idle">idle</primary> 311 270 </indexterm> 312 271 </listitem> … … 351 310 </varlistentry> 352 311 353 <varlistentry id="smtpd.py 2">312 <varlistentry id="smtpd.py"> 354 313 <term><command>smtpd.py</command></term> 355 314 <listitem> … … 357 316 is an SMTP proxy implemented in <application>Python</application>. 358 317 </para> 359 <indexterm zone="python2 smtpd.py 2">360 <primary sortas="b-smtpd.py 2">smtpd.py</primary>318 <indexterm zone="python2 smtpd.py"> 319 <primary sortas="b-smtpd.py">smtpd.py</primary> 361 320 </indexterm> 362 321 </listitem>
Note:
See TracChangeset
for help on using the changeset viewer.