You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pinning setuptools causes a warning indicating that setuptools was not pinned.
Environment Versions
OS Type Linux
Python version: $ python -V3.11.9
pip version: $ pip --version25.0
pip-tools version: $ pip-compile --version7.4.1
Steps to replicate
Create requirements.in with the following content:
flask==3.1.0
Attempt to generate requirements.txt: pip-compile --generate-hashes --output-file=requirements.txt requirements.in
Observe success and no warning (as expected)
Determine current working version of setuptools: pip list | grep setuptools (mine is 75.8.0)
Pin setuptools in requirements.in by changing its content to:
flask==3.1.0
setuptools==75.8.0
Attempt to generate requirements.txt: pip-compile --generate-hashes --output-file=requirements.txt requirements.in
Expected result
Success, or at least warnings that make sense.
Actual result
# WARNING: The following packages were not pinned, but pip requires them to be
# pinned when the requirements file includes hashes and the requirement is not
# satisfied by a package already installed. Consider using the --allow-unsafe flag.
# setuptools
The generated requirements file may be rejected by pip install. See # WARNING lines for details.
This warning is extremely surprising since the change that elicits this warning is pinning the very package that the message claims was not pinned.
The text was updated successfully, but these errors were encountered:
Pinning
setuptools
causes a warning indicating thatsetuptools
was not pinned.Environment Versions
$ python -V
3.11.9$ pip --version
25.0$ pip-compile --version
7.4.1Steps to replicate
requirements.in
with the following content:pip-compile --generate-hashes --output-file=requirements.txt requirements.in
setuptools
:pip list | grep setuptools
(mine is 75.8.0)setuptools
inrequirements.in
by changing its content to:pip-compile --generate-hashes --output-file=requirements.txt requirements.in
Expected result
Success, or at least warnings that make sense.
Actual result
This warning is extremely surprising since the change that elicits this warning is pinning the very package that the message claims was not pinned.
The text was updated successfully, but these errors were encountered: