Setuptools: 'develop' command does not support --home option

Created on 30 May 2015  路  9Comments  路  Source: pypa/setuptools

Originally reported by: Anonymous


The 'develop' command doesn't support the '--home' option. This gets used by pip when installing editable packages with '-t', yielding the following error:

$ pip2 install -e . -t www/lib/
Obtaining file:///Users/pgriess/src/pgriess-dallas-foodscores
Collecting tweepy>=3 (from foodscores==0.1)
  Using cached tweepy-3.3.0-py2.py3-none-any.whl
Collecting feedgen>=0.3 (from foodscores==0.1)
...
  Running setup.py develop for foodscores
    Complete output from command /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize; __file__='/Users/pgriess/src/pgriess-dallas-foodscores/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps --home=/var/folders/lh/bdrw67kn04s7c7rdtsk50pg8f1dq3h/T/tmpyinatN:
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help

    error: option --home not recognized

Not sure if this should be considered a bug in setuptools or pip; apologies in advance if this is expected behavior and pip should just be doing something different.


bug minor

Most helpful comment

any ideas on how to deal with this? it is really bothering me

All 9 comments

_Original comment by_ jaraco (Bitbucket: jaraco, GitHub: jaraco):


Looking at the source, it seems the develop command does not accept a --home parameter. The distutils install command does, however, so that may be what pip is expecting when passing it to develop. The develop command is derived from the easy_install command, so has a different interface than that of the install command.

At first blush, then, this appears to be a bug in pip. Maybe pip should be passing --install-dir, or maybe pip would like develop to support the --home parameter. It's not immediately clear to me what that would imply, but I'd entertain a patch to support it if appropriate.

_Original comment by_ NiklasRosenstein (Bitbucket: NiklasRosenstein, GitHub: NiklasRosenstein):


I can confirm this with pip 7.1.0. Any way around this?

same here (pip 8.1.2). Any news?

pip version 8.1.2 here too .... Any update on the possible workarounds for this or a patch that fixes the issue?

any ideas on how to deal with this? it is really bothering me

Any update on this?

Any movement on this lately? It's still happening on version 9.0.1

I'm having the same issue

https://github.com/pypa/pip/issues/4390 is the current issue tracking this as its a pip bug

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lorilew picture lorilew  路  4Comments

rickstaa picture rickstaa  路  5Comments

Tobotimus picture Tobotimus  路  4Comments

alevesely picture alevesely  路  5Comments

srikanth-viswanathan picture srikanth-viswanathan  路  4Comments