..\setup.py relative invocation (was: [issue108] develop install fails if path to setup.py is relative)
setup.py fails miserably when invoked using relative path, i.e.
`python ../../setup.py ...`. In this case it attempts to look up
referenced files in current directory - not in its own dir.
What is it needed for?
Does distutils2 fix this?
I ask, because it adds another "save cwd;cd;...;restore cwd" yak
shaving wrapper to development process, and the error message for
failure is not very intuitive.
--
anatoly t.
On Sat, May 8, 2010 at 10:26 PM, P.J. Eby
At 12:23 PM 5/8/2010 +0000, techtonik wrote:
New submission from techtonik
: (stable011) M:\p\python\trac\env\stable011>python ..\..\bitten\bitten-0.6.x\setup.py develop -mxd testenv\plugins
Just FYI: you can NEVER run a setup.py in a different directory than the one where you're located, whether it's with distutils or setuptools.
I have no idea whether it works with distutils2 or is intended to be supported, but if it's based on disutils code, then you MUST change to the correct directory before running it.
participants (2)
-
anatoly techtonik
-
Tarek Ziadé