ReleaseEngineering/PuppetAgain/Python

From MozillaWiki
Jump to navigation Jump to search

The python module uses access to 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.

These packages are at

http://repos/python/packages

and can also be sourced at

http:///python/packages

in file resources.

Special Cases

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.