Install pip-tools from PyPI.
Create the file req.in containing:
--index-url https://example.net/pypi/simple/
--extra-index-url https://pypi.org/simple/
numpy
Run pip-compile.
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile req.in
#
--index-url https://example.net/pypi/simple/
--extra-index-url https://pypi.org/simple/
numpy==1.20.1
# via -r req.in
The --extra-index-url option provided in req.in does not appear in the generated req.txt:
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile req.in
#
--index-url https://example.net/pypi/simple/
numpy==1.20.1
# via -r req.in
I even tried specifically running pip-compile --extra-index-url https://pypi.org/simple req.in, but it still produced the output above.
Hello @gwerbin,
Thanks for the report! This has been fixed in #1325.
Hello @gwerbin,
Thanks for the report! This has been fixed in #1325.
Thanks!
I was going to start using Pip-Tools in a new project, but right now I'm working around the issue with Sed. Out of curiosity (if only for my planning purposes), is there a general timeline on when this fix will be released on PyPI?
@gwerbin
It's pretty soon. I would say — by the end of the week.
pip-tools v6.0.0 is released 🚀
Most helpful comment
@gwerbin
It's pretty soon. I would say — by the end of the week.