[Distutils] Setting distutils options from sitecustomize
Ian Bicking
ianb at colorstudy.com
Mon Jan 23 19:09:46 CET 2006
Has anyone tried anything that involves setting the distutils options
(e.g., where to install libraries) from sitecustomize or some other
Python location? I want to put in logic that is more complex than can
be expressed in a configuration file. Setuptools-specific is a-ok too.
Monkeypatching distutils doesn't particularly bother me in this case
either. Though that's not great either (if it goes in sitecustomize),
since it means that there's an overhead to every Python startup to load
distutils and patch it, even if distutils wouldn't have otherwise loaded.
Jim Fulton asked about something similar on IRC too -- actually about
having an easy_install binary that installed to a different location
than normal (to the Zope instance path). Similar in that however such a
script might work it might need to do similar things, setting distutils
options at runtime.
--
Ian Bicking / ianb at colorstudy.com / http://blog.ianbicking.org
More information about the Distutils-SIG
mailing list