• programming in python • a course for the curious •

Python3.3 on Gentoo

Do you want to install Python3.3 on Gentoo. It is plain simple, though you should change a few settings if you want to maintain it the right way and do not have portage complains about missing dependencies. Here are simple steps:

  • Python3.3 is not hard masked any more, but it is kye-word masked. To unmask it add

    =dev-lang/python-3.3.2 ~amd64  # don't forget to use your arch keyword

    to /etc/portage/package.keywords,

  • add python3_3 to PYTHON_TARGETS variable in /etc/portage/make.conf

  • add 3.3 to USE_PYTHON in /etc/poratege/make.conf

  • unmask python_targets_python3_3 and python_single_target_python3_3 use flags in /etc/portage/profile/use.mask by adding the following lines:

  • now you need to rebuild your python library with python_updater and you you are done!

Here you have the Gentoo python-r1 eclass guide. Though it does not mention the fourth step (unmasking the use flags), I had a dependencies problem using emerge -DuNa word which has been solved by this step.

Contact us.
Created using , and
we are not associated with Python Software Foundation
© Copyright 2012, 2013 Accorda Institute.