-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
process-dependency-links not respected for subdependencies when generating pipfile.lock #2235
Comments
assigning this one to @techalchemy |
I am pretty sure this is the only way to do what you're trying to do right now, so I agree with your assessment so far For the record you probably don't need quotes around your dependencies... Point of curiosity -- can you just set |
If I specify a subdirectory in my dependency, the ampersand gets mangled by bash without quotes, so I always keep the quotes there so I don't forget :)
|
Note to self: this doesn't work with lockfiles because we pass |
Is a fix (or workaround) for this issue on the roadmap? Is there anything I could do to help? Do you need test cases? |
test cases would probably be helpful, @bjmc-globus but I think we merged a fix for this actually if you want to test out the current version on master -- see #2643 |
Closing, this is removed in the latest pip, fixed before that in pipenv, thanks all! |
I'm not sure pipenv has absorbed the change in latest pip correctly. When trying to use the new syntax (which works correctly in pip), I get the following error:
|
When trying to install a private dependency with a private subdependency that has a private subdependency of its own, pipenv doesn't follow the specified
dependency_links
for the "subsubdependency" when generating Pipfile.lock.$ python -m pipenv.help output
Pipenv version:
'11.10.1'
Pipenv location:
'/home/user/.local/lib/python2.7/site-packages/pipenv'
Python location:
'/usr/bin/python'
Other Python installations in
PATH
:2.7
:/usr/bin/python2.7
2.7
:/usr/bin/python2.7
3.6
:/usr/bin/python3.6m
3.6
:/usr/bin/python3.6
2.7.15
:/usr/bin/python
2.7.15
:/usr/bin/python2
3.6.5
:/usr/bin/python3
PEP 508 Information:
System environment variables:
PYTHONDONTWRITEBYTECODE
PIP_PROCESS_DEPENDENCY_LINKS
PIP_PYTHON_PATH
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/user/.local/bin:/home/user/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/home/user/test/
Contents of
Pipfile
('/home/user/test/Pipfile'):Expected result
The Pipfile.lock should be correctly generated.
Actual result
Steps to replicate
Create three repos, the first of which (
privatedependency
) points to the second (privatesubdependency
) in itsdependency_links
, and the second of which points to the third (privatesubsubdependency
).pipenv install -e 'git+ssh://git@github.com/private/dependency.git@master#egg=dependency'
Everything will be installed correctly, but pipenv will complain when attempting to generate the Pipfile.lock. If I separately add
privatesubdependency
to the Pipfile, things start working OK, but it defeats the point of pipenv when I start having to manually manage my subdependencies.I know that
process-dependency-links
is deprecated but the "official best ™️ " solution (maintain a private PyPI-compatible server) simply isn't feasible for my team right now. We're closely following threads like pypa/pip#3610 and pypa/pip#4187, but until a better alternative is proposed, we rely on this feature pretty heavily.Thanks!
The text was updated successfully, but these errors were encountered: