setuptools "install" writes to build directory
Hi there, when you install a setuptools-equipped package with python setup.py build sudo python setup.py install the "install" stage writes to the build directory, as root. This is not great behavior, and will fail on NFS-mounted build roots. Can something be done to avoid this? Andreas
At 12:42 PM 4/24/2008 -0400, Andreas Klöckner wrote:
Hi there,
when you install a setuptools-equipped package with
python setup.py build sudo python setup.py install
the "install" stage writes to the build directory, as root. This is not great behavior, and will fail on NFS-mounted build roots.
Can something be done to avoid this?
With the normal distutils, you can use the --skip-build option to install. For setuptools, this also works, but only if you're using --single-version-externally-managed and/or --root (i.e., the distutils-compatible mode). If you're not using the distutils-compatible mode, then do this: python setup.py bdist_egg sudo python setup.py easy_install dist/projectname-version-whatever.egg To separate the build and install steps.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andreas Klöckner wrote:
Hi there,
when you install a setuptools-equipped package with
python setup.py build sudo python setup.py install
the "install" stage writes to the build directory, as root. This is not great behavior, and will fail on NFS-mounted build roots.
Can something be done to avoid this?
Something like: /path/to/python setup.py install_lib --skip-build works. I don't know why '--skip-build' doesn't keep the 'install' command from running 'build_py'. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIEMrf+gerLs4ltQ4RAkfXAJ9rUV+w/BXI8nvGpc7MGw1y5yY5EgCgsW4J 700ubjkHN9lztWB3yr/vsVw= =alvY -----END PGP SIGNATURE-----
participants (3)
-
Andreas Klöckner
-
Phillip J. Eby
-
Tres Seaver