setuptools setup.py and "extras"

Discussion in 'Python' started by Chadrik, Apr 22, 2009.

  1. Chadrik

    Chadrik Guest

    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
     
    Chadrik, Apr 22, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    7
    Views:
    570
  2. Ilias Lazaridis
    Replies:
    1
    Views:
    319
    Ilias Lazaridis
    Sep 20, 2006
  3. Flash Gordon

    [semi OT] CLC Wiki Relaunch + Free Extras

    Flash Gordon, Jan 27, 2007, in forum: C Programming
    Replies:
    12
    Views:
    592
    Malcolm McLean
    Jan 30, 2007
  4. Replies:
    0
    Views:
    375
  5. Replies:
    0
    Views:
    387
Loading...

Share This Page