Difference between revisions of "News:Python Updates"

From Funtoo
Jump to navigation Jump to search
Line 27: Line 27:
* <code>PYTHON_SINGLE_TARGET="python3_4"</code>
* <code>PYTHON_SINGLE_TARGET="python3_4"</code>


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 <code>/etc/portage/package.unmask</code> and <code>/etc/portage/package.mask</code> dealing with python-3.4, they not needed anymore.
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 <code>/etc/portage/package.unmask</code> and <code>/etc/portage/package.mask</code> dealing with python-3.4, they not needed anymore. After updates portage will give a message about running <code>emerge @preserved-rebuild</code>. This step is required to perform
 
{{console|body=
###i## 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.
 
{{console|body=
###i## emerge -1v $(find /usr/lib*/python3* -name '*cpython-3[3-5].so')
}}

Revision as of 17:34, February 12, 2016

Python Updates

Python Updates

By Oleg / February 12, 2016

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')