question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pipenv install ignores install_requires from setup.py

See original GitHub issue

Affacted release: 2020.6.2

works fine in 2018.11.26

Issue description

pipenv install does not install dependencies from setup.py -> install_requires

Pipefile

example-adapter = {ref = "my-tag", git = "ssh://git@myinternalgit/example-adapter.git"}

setup.py:

setup(
	name="example-adapter",
	version="1.7.1",
	author="abc",
	author_email="abc",
	description=("abc"),
	long_description=read('README.md'),
	keywords=["abc", "adapter"],
	packages=find_packages(),
	python_requires='>=3.6',
	install_requires=['python-jose==3.1.0', 'cachetools==3.1.0'],
	tests_require=[]
)

Expected result

Configured packages from example-adapter/setup.py / install_requires are being installed.

Actual result

Configured packages from example-adapter/setup.py / install_requires NOT are being installed.

Steps to replicate

pipenv install

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jordivandoorencommented, Aug 20, 2020

Setting environment variable PIPENV_RESOLVE_VCS to 0 fixed this exact problem for me (newer Pipenv versions skipping subdependencies of internal VCS dependencies).

Quote:

PIPENV_RESOLVE_VCS Tells Pipenv whether to resolve all VCS dependencies in full. As of Pipenv 2018.11.26, only editable VCS dependencies were resolved in full. To retain this behavior and avoid handling any conflicts that arise from the new approach, you may set this to ‘0’, ‘off’, or ‘false’.

0reactions
matteiuscommented, Aug 26, 2022

Please recheck with pipenv=2022.8.24

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I sync values in setup.py / install_requires with Pipfile ...
I was inspired by your answer but my function in setup.py reads only [packages] section from Pipfile (and ignore [dev-packages]). It skips ...
Read more >
30371 (Use pipenv to create venv for development) - Sage Trac
We modify src/setup.py to support editable installs via pipenv ( pipenv install ... .venv pipenv install --dev --ignore-pipfile pipenv run pip install -e...
Read more >
setuptools-pipfile - PyPI
Add setuptools-pipfile to setup_requires and use_pipfile=True in your setup.py. This assumes that the Pipfile is in the same file directory as setup.py.
Read more >
pipenv Documentation - Read the Docs
This tutorial walks you through installing and using Python packages. ... Note: pipenv install --ignore-pipfile is nearly equivalent to pipenv sync, ...
Read more >
Python - Dependency Management | Shipping/Packaging
When you install a package, or declaring a dependency, you need to specify an package id that's known in Python as a requirement...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found