-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Using --target with --editable results in "internal" error #562
Comments
Experiencing this error with |
i also ran into this error right now. So, in the end i found out that using the Maybe |
IMO the expected behavior would create / update the easy_install.pth in the |
I just experienced the same issue. As suggested by @jezdez you can work around this by doing the following (without using --editable that is):
|
I'm seeing a similar issue here myself:
line 290 in pip/commands/install.py is:
From what I can trace, pip has already cleaned this path up in pip/req.py line 1194 where it removes the temporary source.
I can see leaving that clean-up in there as is but wrapping it with an exists or try block so the install can continue on. Does anyone see that as a problem? |
@tima I had the same problem with the lib directory. Pip HEAD supposedly fixed this but at least on CentOS the issue still persists. In this particular case there is a lib64 directory instead of a lib one. |
I have the same issue using Here's my traceback—
|
+1, Downloading PyYAML-3.10.tar.gz (241kB): 241kB downloaded Running setup.py egg_info for package pyyaml skipping 'ext/_yaml.c' Cython extension (up-to-date) Installing collected packages: krcore, sympy, pyparsing, pyyaml Running setup.py develop for krcore 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 Complete output from command /usr/bin/python -c "import setuptools; __file__='/tmp/krapp/src/krcore/setup.py'; exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps --home=/tmp/tmpvKaRYp: 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 ---------------------------------------- Cleaning up... Command /usr/bin/python -c "import setuptools; __file__='/tmp/krapp/src/krcore/setup.py'; exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps --home=/tmp/tmpvKaRYp failed with error code 1 in /tmp/krapp/src/krcore |
I get the 'error: option --home not recognized' when using --target with -r (--requirements) |
👍 |
Following @yorickpeterse and @jezdez workaround caused: --editable and --target options don't work together |
I have been hitting the same issue... This is likely related to pypa/setuptools#392 And since one pip command can trigger both
It would be much cleaner if there was no need to change other pip command line options whether
|
The biggest difficulty with this option is that pip is working to abstract away the details of the build system (setuptools) so special-case workarounds for setuptools issues work against that goal. |
In the end I managed to do what I wanted, using However I had to somehow adapt my existing (debian) layout to match pip default (site-packages), since there is no pip option to specify the layout... Maybe a feature to consider adding? |
This needs |
could someone please share what the best workaround is to use both -e and -t options? Are you suggesting to use distutils since it supports the '--home' option? |
any news? |
I am still using |
if you want to use the --prefix option instead of --target you need to have the |
Closing to move a bunch of related issues to a single issue: #4390. |
I'd add that this is an issue for Google Appengine developers who need to install their dependencies in a directory in the app root but also need to deploy an editable dependency in a local checkout as part of a QA process. As it sits, the editable would need to be manually symlinked which is cumbersome. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
It seems like
--target
is not supported when using--editable
at the same time. It would be nice to have it working. Meanwhile there should be some better diagnostic asc:\>pip install -t z:\1 -e git+https://github.com/kennethreitz/requests.git#egg=requests
results in
The text was updated successfully, but these errors were encountered: