Note

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "News:Python Updater Deprecation"

From Funtoo
Jump to navigation Jump to search
m (Small fix)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{News
{{News
|Summary=Python Updater deprecation.
|Summary=Python-updater is no longer part of Funtoo Linux.
|News Format=Extended
|News Format=Extended
|News Category=General
|News Category=General
|Author=Oleg
|Author=Oleg
|Publication Status=Published
|Publication Status=Published
|Deprecated By=
|Deprecated By=Unfork Tree is Live!
|Publication Date=2014/12/06
|Publication Date=2014/12/06
|Icon=
}}
}}
As some users have noticed, python-updater package, a tool for scanning and rebuilding python packages after major Python version updates is now removed. As of Nov 28, python-updater no longer required.  After merging new version of python ebuilds, following steps required:
{{Important|As of October 2015, we have moved away from the progress overlay so this news item is no longer applicable to Funtoo Linux.}}
 
As some users have noticed, the python-updater package, a tool for scanning and rebuilding python packages after major Python version updates is now removed. As of Nov 28, python-updater is no longer required.  After merging new version of python ebuilds, the following steps are required:


== Portage rebuild ==
== Portage rebuild ==
Line 18: Line 19:


== Python Variables ==
== Python Variables ==
In Funtoo Linux, PYTHON variables are set automatically in profile. In case PYTHON_* variables are manually set in <code>/etc/portage/make.conf</code> ,  such as <code>PYTHON_ABIS="2.7 3.3"</code>, and/or <code>/etc/portage/package.use</code>, such as <code>app-category/pkgname python_abis_3.3</code> , then change them accordingly to a version you which you upgraded. Example: <code>PYTHON_ABIS="2.7 3.4"</code>, <code>python_abis_3.4</code>this require update portage again  
In Funtoo Linux, PYTHON variables are set automatically in profile. In case PYTHON_* variables are manually set in <code>/etc/portage/make.conf</code> ,  such as <code>PYTHON_ABIS="2.7 3.3"</code>, and/or <code>/etc/portage/package.use</code>, such as <code>app-category/pkgname python_abis_3.3</code> , then change them accordingly to a version you which you upgraded. Example: <code>PYTHON_ABIS="2.7 3.4"</code>, <code>python_abis_3.4</code>. This requires updating Portage again:
<console>
<console>
###i## emerge --nodeps --oneshot sys-apps/portage
###i## emerge --nodeps --oneshot sys-apps/portage
Line 26: Line 27:
This can be achieved by using eselect.  
This can be achieved by using eselect.  
<console>
<console>
###i## eselect python --python3 python3.4
###i## eselect python set --python3 python3.4
</console>
</console>
This command sets  python 3 interpreter to version 3.4. Choose the one you upgrade to.
This command sets  python 3 interpreter to version 3.4. Choose the one you upgrade to.

Latest revision as of 07:43, September 10, 2018

Python Updater Deprecation

   Important

This news item is not current. You can find updated information on this topic at Unfork Tree is Live!.

Python-updater is no longer part of Funtoo Linux.

By Oleg / December 6, 2014
   Important

As of October 2015, we have moved away from the progress overlay so this news item is no longer applicable to Funtoo Linux.

As some users have noticed, the python-updater package, a tool for scanning and rebuilding python packages after major Python version updates is now removed. As of Nov 28, python-updater is no longer required. After merging new version of python ebuilds, the following steps are required:

Portage rebuild

root # emerge --oneshot sys-apps/portage

This ensures that unconditional dependencies are properly installed.

Python Variables

In Funtoo Linux, PYTHON variables are set automatically in profile. In case PYTHON_* variables are manually set in /etc/portage/make.conf , such as PYTHON_ABIS="2.7 3.3", and/or /etc/portage/package.use, such as app-category/pkgname python_abis_3.3 , then change them accordingly to a version you which you upgraded. Example: PYTHON_ABIS="2.7 3.4", python_abis_3.4. This requires updating Portage again:

root # emerge --nodeps --oneshot sys-apps/portage

This will rebuild portage independently of package dependencies, i.e if packages with old sys-apps/portage[python_abis_3.3] dependencies still present.

Changing the Python Active Version

This can be achieved by using eselect.

root # eselect python set --python3 python3.4

This command sets python 3 interpreter to version 3.4. Choose the one you upgrade to.

World update

Update your world.

root # emerge --update --deep --newuse @world