Python-3.4.2
Installation of Python 3
Install Python 3 by running the
following commands:
CXX="/usr/bin/g++" \
./configure --prefix=/usr \
--enable-shared \
--with-system-expat \
--with-system-ffi \
--without-ensurepip &&
make
The test suite must be run separately, using an X terminal (see
below).
Now, as the root
user:
make install &&
chmod -v 755 /usr/lib/libpython3.4m.so &&
chmod -v 755 /usr/lib/libpython3.so
If you have downloaded the preformatted documentation from
http://docs.python.org/download.html,
install it as the root
user:
install -v -dm755 /usr/share/doc/python-3.4.2/html &&
tar --strip-components=1 \
--no-same-owner \
--no-same-permissions \
-C /usr/share/doc/python-3.4.2/html \
-xvf ../python-3.4.2-docs-html.tar.bz2
The test suite must be run separately from the build, either before
or after the package is built and installed. Do not run
make install, after
running the test suite. To build and install the package, you need
to start with a fresh or clean source tree. For the test, you also
need a clean source code, so either start by removing the source
code directory and starting over, by uncompressing the source
tarball or by running make
clean. Then configure again, adding
“--with-pydebug” to the
configure switches
above, run make, then
make test. Remember
that some tests fail, if not run in an X terminal.
Command Explanations
CXX="/usr/bin/g++" ./configure
...: Avoid an annoying message during
configuration.
--with-system-expat
: This switch
enables linking against system version of Expat.
--with-system-ffi
: This switch enables
linking against system version of libffi. Remove if you have not installed
recommended dependency libffi-3.2.1.
--with-dbmliborder=bdb:gdbm:ndbm
: Use
this switch if you want to build Python DBM Module against Berkeley DB instead of GDBM.
--without-ensurepip
: This
switch disables building pip and setuptools packaging programs.
chmod ...: Fix
permissions for shared libraries to be consistent with other
libraries.
Configuring Python 3
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:
export PYTHONDOCS=/usr/share/doc/python-3.4.2/html
Contents
Installed Programs:
2to3 (symlink), 2to3-3.4, pydoc3
(symlink), pydoc3.4, python3 (symlink); python3.4 and
python3.4m (hardlinked); python3-config (symlink),
python3.4-config (symlink), python3.4m-config, pyvenv
(symlink), pyvenv3.4, idle3 (symlink), and idle3.4
Installed Libraries:
libpython3.4m.so and libpython3.so
Installed Directories:
/usr/include/python3.4m,
/usr/lib/python3.4, and /usr/share/doc/python-3.4.2
Short Descriptions
idle3
|
is a wrapper script that opens a Python aware GUI editor. For this
script to run, you must have installed Tk before Python so that the Tkinter
Python module is built.
|
pydoc3
|
is the Python
documentation tool.
|
python3
|
is an interpreted, interactive, object-oriented
programming language.
|
python3.4
|
is a version-specific name for the python program.
|
pyvenv
|
creates virtual Python
environments in one or more target directories.
|
Last updated on 2015-02-22 17:34:08 -0500