The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
News:Python Updates
Python Updates
Python updates available. This update brings following changes:
- python-3.4.3
- python-2.7.11
- eselect-python update
Noticeable change in python-3.4 is https://www.python.org/dev/peps/pep-3149/
Normally, emerge -uDN @world
is sufficient for all python packages and modules to be rebuilt and use new abi-letters naming in shared libs as explained in above link, however certain settings may prevent clean updates. We will try to describe where users need to look.
Following system settings are in need of check:
/etc/portage/make.conf
/etc/portage/package.use
/etc/portage/package.mask
/etc/portage/package.unmask
If nothing, regarding PYTHON_TARGETS
, PYTHON_SINGLE_TARGET
set in above mentioned configure files then update should be quite straight-forward, because updates will bring following change as default in profiles.
PYTHON_TARGETS="python2_7 python3_4"
PYTHON_SINGLE_TARGET="python3_4"
If custom changes applied in any/all of configure files and they are different from above mentioned targets or packages have special python targets USE's, it is necessary to either remove them or change to match as shown above. Please, take care about any python related entries in /etc/portage/package.unmask
and /etc/portage/package.mask
dealing with python-3.4, they not needed anymore. After updates portage will give a message about running emerge @preserved-rebuild
. This step is required to perform
root # emerge @preserved-rebuild
If some packages rebuild is still incomplete, here is a special command for more fine grained rebuild. Use it only if none of regular steps ensured completeness of python-related packages reinstallation.
root # emerge -1v $(find /usr/lib*/python3* -name '*cpython-3[3-5].so')