Changeset 82fac2c for general/prog/python2.xml
- Timestamp:
- 01/18/2013 03:06:25 PM (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:
- 1700976
- Parents:
- bc9797f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/python2.xml
rbc9797f r82fac2c 6 6 7 7 <!ENTITY python2-download-http 8 "http://www.python.org/ftp/python/&python2-version;/Python-&python2-version;.tar.xz">8 "http://www.python.org/ftp/python/&python2-version;/Python-&python2-version;.tar.xz"> 9 9 <!ENTITY python2-download-ftp " "> 10 <!-- <!ENTITY python2-download-ftp "&gentoo-ftp-repo;/Python-&python2-version;.tar.xz"> -->11 10 <!ENTITY python2-md5sum "62c4c1699170078c469f79ddfed21bc0"> 12 11 <!ENTITY python2-size "9.6 MB"> 13 12 <!ENTITY python2-buildsize "235 MB (not including the test suite)"> 14 13 <!ENTITY python2-time "1.1 SBU (not including the test suite)"> 14 15 15 <!ENTITY python2htmldoc-download-http 16 "http://docs.python.org/ftp/python/doc/&python2-version;/python-&python2-version;-docs-html.tar.bz2">16 "http://docs.python.org/ftp/python/doc/&python2-version;/python-&python2-version;-docs-html.tar.bz2"> 17 17 <!ENTITY python2htmldoc-md5sum "101c13d39f76fd6706aac3a9196b2f01"> 18 18 <!ENTITY python2htmldoc-size "4.2 MB"> … … 30 30 31 31 <indexterm zone="python2"> 32 <primary sortas="a-Python2">Python </primary>32 <primary sortas="a-Python2">Python2</primary> 33 33 </indexterm> 34 34 … … 38 38 <para> 39 39 The <application>Python 2</application> package contains the 40 <application>Python</application> development environment. Thisis useful40 <application>Python</application> development environment. It is useful 41 41 for object-oriented programming, writing scripts, prototyping large 42 42 programs or developing entire applications. This version is for backward … … 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 103 113 <bridgehead renderas="sect3">Python Dependencies</bridgehead> 114 115 <bridgehead renderas="sect4">Recommended</bridgehead> 116 <para role="recommended"> 117 <xref linkend="expat"/>, 118 <xref linkend="libffi"/> and 119 <xref linkend="pkgconfig"/> 120 </para> 104 121 105 122 <bridgehead renderas="sect4">Optional</bridgehead> 106 123 <para role="optional"> 107 <!-- <xref linkend="pth"/> can only be used if you've overwritten glibc's 108 libpthread. --> 109 <xref linkend="libffi"/> and <xref linkend="pkgconfig"/> 110 (<command>configure</command> uses <command>pkgconfig</command> to find 111 <application>libffi</application>. There is a circular dependency here: 112 <application>Pkgconfig</application> requires 113 <application>Glib</application> which requires 114 <application>Python 2</application>), 115 <!-- gcc's libffi does not install a pkgconfig file --> 116 <ulink url="http://sphinx.pocoo.org/">Sphinx</ulink> (to create the docs), 117 <xref linkend="bluez"/>, 124 <xref linkend="bluez"/> and 125 <ulink url="http://sphinx.pocoo.org/">Sphinx</ulink> 126 </para> 127 128 <bridgehead renderas="sect4">Optional (For Additional Modules)</bridgehead> 129 <para role="optional"> 130 <xref linkend="db"/>, 118 131 <xref linkend="openssl"/>, 119 <xref linkend="tk"/> (there is a circular dependency with the 120 <application>Tk</application> package as it requires Xorg to be installed 121 but parts of Xorg depend on <application>Python</application>), 122 <!--<xref linkend="db"/> and--> 123 <ulink 124 url="http://www.oracle.com/technetwork/products/berkeleydb/downloads/">BerkeleyDB</ulink> 125 (only versions up to 4.8), and 126 <xref linkend="sqlite"/>. 132 <xref linkend="sqlite"/> and 133 <xref linkend="tk"/> 127 134 </para> 128 135 … … 141 148 142 149 <screen><userinput>sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py && 143 ./configure --prefix=/usr --enable-shared && 150 patch -Np1 -i ../Python-&python2-version;-bsddb_fix-1.patch && 151 ./configure --prefix=/usr \ 152 --enable-shared \ 153 --with-system-expat \ 154 --with-system-ffi \ 155 --enable-unicode=ucs4 && 144 156 make</userinput></screen> 145 157 … … 194 206 195 207 <para> 196 <option>--with-system-ffi</option>: If you have installed197 <application>Libffi</application> and198 <application>Pkgconfig</application>, add this option to compile199 <application>Python</application>'s _ctypes module using the system200 installed <application>Libffi</application>. Otherwise201 <application>Python</application> will compile its own copy of202 <application>Libffi</application>.203 </para>204 205 <para>206 208 <command>sed -i "s/ndbm_libs = ..." setup.py</command>: This command is 207 209 used to fix a build problem with the <application>GDBM</application> … … 210 212 211 213 <para> 214 <option>--with-system-expat</option>: This switch enables linking against 215 system version of <application>Expat</application>. Remove if you have 216 not installed recommended dependency <xref linkend="expat"/>. 217 </para> 218 219 <para> 220 <option>--with-system-ffi</option>: This switch enables linking against 221 system version of <application>libffi</application>. Remove if you have 222 not installed recommended dependency <xref linkend="libffi"/>. 223 </para> 224 225 <para> 226 <parameter>--enable-unicode=ucs4</parameter>: This switch enables 227 32bit Unicode support in <application>Python</application>. 228 </para> 229 230 <para> 231 <parameter>--with-dbmliborder=bdb:gdbm:ndbm</parameter>: Use this switch 232 if you want to build <application>Python</application> DBM Module 233 against <application>Berkeley DB</application> instead of 234 <application>GDBM</application>. 235 </para> 236 237 <para> 212 238 <command>chmod ...</command>: Fix permissions for libraries to be 213 239 consistent with other libraries. 214 240 </para> 241 215 242 </sect2> 216 243 … … 225 252 226 253 <screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/Python-&python2-version;</userinput></screen> 254 227 255 </sect2> 228 256 … … 334 362 </listitem> 335 363 </varlistentry> 364 336 365 </variablelist> 337 </sect2> 366 367 </sect2> 368 338 369 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.