'develop' command does not support --home option
Opened this issue ยท 11 comments
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.
Original comment by NiklasRosenstein (Bitbucket: NiklasRosenstein, GitHub: NiklasRosenstein):
I can confirm this with pip 7.1.0. Any way around this?
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.
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
pypa/pip#4390 is the current issue tracking this as its a pip bug
@maintainers: Any progress on this issue? Is there anything that can be done to get this moving forward? It seems implementing --home
for develop
could be entirely possible?
My understanding is that the discussion about this issue has been moved to #2589, so I will close this issue for the time being (everyone is welcome to continue the conversation there ๐)
The good news is that lately there have been several discussions on editable installs and PEP 660, so we might be able to address this issue ๐ค