ReleaseEngineering/PuppetAgain/Python: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
The [[ReleaseEngineering/Puppet/Modules/python|python]] module uses access to python packages.
The [[ReleaseEngineering/Puppet/Modules/python|python]] module uses this data tree to get python packages.


In general, these are just downloads from pypi.  However, a few packages are special - see below.  It also has a copy of 'virtualenv.py' that's used to install new virtualenvs.
In general, these are just downloads from pypi.  However, a few packages are special - see below.


These packages are at
These packages are at
: http://repos/python/packages
: http://repos/python/packages
and can also be sourced at
and can also be sourced at
: http:///python/packages
: puppet:///python/packages
in file resources.
in file resources.


= Special Cases =
= Special Cases =
== virtualenv.py ==
An un-packaged copy of virtualenv.py is at python/packages/virtualenv.py.  This is used to bootstrap virtualenvs.


== Twisted ==
== Twisted ==


Some virtualenvs need to be installed on systems without compilers.  In particular, Talos systems don't have compilers or development libraries installed.  For these cases, we install packages that can fall back to a pure-python implementation when the compile fails.  The tarball of Twisted-10.2.0 is *not* the one from pypi; that tarball was unpacked, ''conditionalExtensions'' was set to ''[]'' in both ''setup.py'' and ''twisted/topfiles/setup.py'', and a new tarball made with ''setup.py sdist'', and the result is in the python-packages directory.  Newer Twisteds may not need this treatment -- who knows.
Some virtualenvs need to be installed on systems without compilers.  In particular, Talos systems don't have compilers or development libraries installed.  For these cases, we install packages that can fall back to a pure-python implementation when the compile fails.  The tarball of Twisted-10.2.0 is *not* the one from pypi; that tarball was unpacked, ''conditionalExtensions'' was set to ''[]'' in both ''setup.py'' and ''twisted/topfiles/setup.py'', and a new tarball made with ''setup.py sdist'', and the result is in the python-packages directory.  Newer Twisteds may not need this treatment -- who knows.
canmove, Confirmed users
1,394

edits