ReleaseEngineering/PuppetAgain/Python: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
= Special Cases =
= Special Cases =


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.  Sadly, there's not much documentation about how this was done way-back-when, but the Twisted tarball was opened up, and two 'setup.py` files were edited to remove the extensions, then it was re-tarred and placed in this directory.  Newer Twisteds may not need this treatment.
== 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.

Revision as of 02:42, 16 March 2012

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.