setuptools setup.py and "extras"

C

Chadrik

in addition to resolving install dependencies, setuptools supports
"extras" with their own dependencies. these can be installed using
easy_install, like so:

$ easy_install mypackage[extraFeature]

what is the best way to cause an extra's dependencies to be installed
when using the `python setup.py` form?


i discovered that you can use easy_install via setup.py and point it
at the current directory:

$ python setup.py easy_install . #<--- the period points easy_install
at our current dir


however, this does not install the extra features. trying the next
logical step doesn't work:

$ python setup.py easy_install .[extraFeature]


so far the best that i've found is :

$ cd /path/to/mypackage
$ cd ..
$ python mypackage/setup.py easy_install mypackage[extraFeature]

is there a simpler way?

-chad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top