-
-
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
Local inter-dependency resolution fails #4784
Comments
@jyoungs Could you provide your sample setup.py that you used to help reproduce this issue? |
@matteius I believe this is a minimal reproduction example: https://github.com/duailibe/pipenv-local-deps-repro EDIT: Added a working example using requirements.txt |
Also this might be a duplicate of #4553 |
Probably also the same issues as in #4323 |
I believe this was resolved, can you check with |
Just tested with https://github.com/duailibe/pipenv-local-deps-repro and still gives the same error Error
$ pipenv --supportPipenv version: Pipenv location: setuptools version: Python location: OS Name: User pip version: user Python installations found:
PEP 508 Information:
System environment variables:
Pipenv–specific environment variables: Debug–specific environment variables:
Contents of [[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
test-package-pipenv-base = {path = "./test_package_pipenv_base"}
test-package-pipenv-with-dependency = {path = "./test_package_pipenv_with_dependency"}
[dev-packages]
[requires]
python_version = "3.10"
|
@duailibe If you add |
I have just made a code change that makes it work without adding the editable flag. #5342 |
Issue description
Lets say I have two local dependencies, where one of the packages depends on the other:
This basically works (
pipenv install --skip-lock
will install everything into the environment just fine), butpipenv lock
fails.Expected result
This should work. Dependency resolution should identify that the package is sourced locally and not try to source it from upstream repos.
This works fine when installing a requirements.txt file with inter-dependent local packages.
Actual result
pipenv lock --verbose
:The FAQ says to try
pipenv lock --clear
:Steps to replicate
pipenv install --skip-lock <package1> <package2>
# should workpipenv lock
# errorNote: both
pipenv graph
andpip freeze
show the environment has the correct packages:pipenv graph
pipenv run pip freeze
Please run
$ pipenv --support
, and paste the results here. Don't put backticks (`
) around it! The output already contains Markdown formatting.$ pipenv --support
Pipenv version:
'2021.5.29'
Pipenv location:
'/Users/user1/.pyenv/versions/3.8.9/lib/python3.8/site-packages/pipenv'
Python location:
'/Users/user1/.pyenv/versions/3.8.9/bin/python3.8'
Python installations found:
3.9.6
:/usr/local/bin/python3
3.9.6
:/usr/local/bin/python3.9
3.8.9
:/Users/user1/.pyenv/versions/3.8.9/bin/python3
3.8.9
:/Users/user1/.pyenv/versions/3.8.9/bin/python3
3.8.9
:/Users/user1/.pyenv/versions/3.8.9/bin/python3.8
3.8.2
:/usr/bin/python3
2.7.16
:/usr/bin/python2
2.7.16
:/usr/bin/python2.7
Contents of
Pipfile
('/issue/Pipfile'):Contents of
Pipfile.lock
('/issue/Pipfile.lock'):The text was updated successfully, but these errors were encountered: