The Python 3 package contains the Python development environment. This is useful for object-oriented programming, writing scripts, prototyping large programs or developing entire applications.
This package is known to build and work properly using an LFS-7.3 platform.
Download (HTTP): http://www.python.org/ftp/python/3.3.2/Python-3.3.2.tar.xz
Download MD5 sum: c94b78ea3b68a9bbc9906af4d5b4fdc7
Download size: 12 MB
Estimated disk space required: 260 MB
Estimated build time: 0.9 SBU
Optional HTML Documentation
Download MD5 sum: b5eee2b290338fb08c1512bfc79bb999
Download size: 4.7 MB
Install Python 3 by running the following commands:
./configure --prefix=/usr \ --enable-shared \ --with-system-expat \ --with-system-ffi && make
To test the results, issue: make test.
Now, as the
make install && chmod -v 755 /usr/lib/libpython3.3m.so && chmod -v 755 /usr/lib/libpython3.so
If you have downloaded the preformatted documentation from
install it as the
install -v -dm755 /usr/share/doc/python-3.3.2/html && tar --strip-components=1 \ --no-same-owner \ --no-same-permissions \ -C /usr/share/doc/python-3.3.2/html \ -xvf ../python-3.3.2-docs-html.tar.bz2
--with-system-expat: This switch
enables linking against system version of Expat. Remove if you have not installed
recommended dependency expat-2.1.0.
--with-system-ffi: This switch enables
linking against system version of libffi. Remove if you have not installed
recommended dependency libffi-3.0.13.
this switch if you want to build Python DBM Module against Berkeley DB instead of GDBM.
chmod ...: Fix permissions for shared libraries to be consistent with other libraries.
In order for python3 to find the installed documentation, you must add the following environment variable to individual user's or the system's profile:
Last updated on 2013-05-17 20:11:12 +0000