[Distutils] python setup.py bdist_egg results depend on dir location

Todd Greenwood-Geer tgreenwoodgeer at yahoo.com
Wed Dec 14 23:17:05 CET 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Great. The pbu utility is perfect. Thanks, yet again.

Phillip J. Eby wrote:
| At 12:59 PM 12/14/2005 -0800, Todd Greenwood-Geer wrote:
|> -----BEGIN PGP SIGNED MESSAGE-----
|> Hash: SHA1
|>
|> PROBLEM:
|> I would like to be able to execute the egg build from several
|> directories, like so:
|>
|> $ cd active/SimpleExampleEgg
|> $ python setup.py bdist_egg
|>
|> then, at other times, i'd like to change to a package directory and
|> execute the builds from there:
|>
|> $ cd active/SimpleExampleEgg/fruit/docs
|> $ python ../../setup.py bdist_egg
|
| Stop right there.  The distutils do *not* support this, and neither does
| setuptools.  'setup.py' scripts *must* be run from the directory where
they
| are located, so I didn't bother reading the rest of your message.
|
| If you want to run setup.py this way, you should 'easy_install
buildutils'
| and then use its "pbu" command, e.g.:
|
|     pbu bdist_egg
|
| The "pbu" command automatically searches parent directories for a
setup.py,
| then changes to the directory where the setup.py was found, and runs
it for
| you.  This is the only safe way to do it.
|
| (When "pbu" exits, you will however still be in the directory you were in
| before.)
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDoJnhz6uXX4lQc/URAj1NAKDG6yXdR0w6Y3dqjIaKmZ9InjRN+QCeLe5s
L2/6Bs3qn/rTjAPs6RrHn4k=
=Z29e
-----END PGP SIGNATURE-----


More information about the Distutils-SIG mailing list