Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'develop' command does not support --home option #392

Closed
ghost opened this issue May 30, 2015 · 11 comments
Closed

'develop' command does not support --home option #392

ghost opened this issue May 30, 2015 · 11 comments

Comments

@ghost
Copy link

ghost commented May 30, 2015

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.


@ghost
Copy link
Author

ghost commented Aug 7, 2015

Original comment by NiklasRosenstein (Bitbucket: NiklasRosenstein, GitHub: NiklasRosenstein):


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

@ghost
Copy link
Author

ghost commented Aug 7, 2015

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.

@markfink
Copy link

markfink commented Aug 28, 2016

same here (pip 8.1.2). Any news?

@narJH27
Copy link

narJH27 commented Sep 28, 2016

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

@markfink
Copy link

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

@guidedways
Copy link

Any update on this?

tmclaugh added a commit to tmclaugh/threatstack-to-aws-sns that referenced this issue Jun 16, 2017
this pip issue was not helpful in solving this.
pypa/setuptools#392
tmclaugh added a commit to tmclaugh/threatstack-to-aws-sns that referenced this issue Jun 16, 2017
this pip issue was not helpful in solving this.
pypa/setuptools#392
tmclaugh added a commit to tmclaugh/threatstack-to-aws-sns that referenced this issue Jun 16, 2017
this pip issue was not helpful in solving this.
pypa/setuptools#392
tmclaugh added a commit to tmclaugh/threatstack-to-aws-sns that referenced this issue Jun 16, 2017
this pip issue was not helpful in solving this.
pypa/setuptools#392
tmclaugh added a commit to tmclaugh/threatstack-to-aws-sns that referenced this issue Jun 16, 2017
this pip issue was not helpful in solving this.
pypa/setuptools#392
@ryegye24
Copy link

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

@jakul
Copy link

jakul commented Mar 9, 2018

I'm having the same issue

@RonnyPfannschmidt
Copy link
Contributor

pypa/pip#4390 is the current issue tracking this as its a pip bug

@dwt
Copy link

dwt commented Feb 11, 2021

@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?

@abravalheri
Copy link
Contributor

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 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants