-
-
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
--extra-index-url
does not work with pipenv install
#1406
Comments
In my case,
So It turned out that pypa/pip#3728 was recently merged. It allows variable expansion in requirements file, so you can have now, in pip, something like Maybe combining this new feature (by updating vendor) and using a custom package index will solve once and for all the problem with private repos. See for example #856. For me the |
You need to specify the index in your pipfile: https://docs.pipenv.org/advanced/#specifying-package-indexes |
What do you do if your extra index require credentials? |
in the next version, you can use environment variables |
I got it working with running |
probably within the next few days |
Yeah this is incredibly frustrating, there needs to be a way to specify an extra index URL using env vars. We use pip-compile due to its speed and simplicity... Now a third party tool is insisting our compiled requirements.txt is recompiled with pipenv. Fine whatever I can deal with that...except we can't because we don't have a Pipfile and rely on a private pypi for internal packages. What would you suggest we do here? |
There are tools to convert, for example https://dephell.readthedocs.io/cmd-deps-convert.html But generally it’s best to push back against tools or services that force one specific packaging tool and ask them to support standards. |
@CodePint You just commented on an issue from 2018 without much context so its hard to give you a reasonably answer. We actually don't pass extra index URLs anymore and favor index restricted packages by default. You can pass |
This looks like it could be promising, thank you very much, I had not come across this. Unfortunately the situation is what it is for now, but I will certainly try to raise the issue with thd tool maintainer. |
I appreciate that, I should have raised a new issue in hindsight. Several hours later and knowing more about how I will have another look at the suggested approach with something like |
Is the only way to install package on private index (specifically one which has public subdependencies on PyPI) to "manually" fill the "Pipfile" and do
pipenv install
as implied here?In other words,
pipenv install pkgname --extra-index-url <link-to-index>
doesn't work (neither doespipenv install pkgname -i <link-to-index>
(as it shouldn't since-i
corresponds to--index-url
which is not desirable in this context.)Describe your environment
$ python -V
2.7$ pipenv --version
9.0.3Expected result
I expect for package to be installed from the private index, and its sub-dependencies (specified in its
setup.py
) be installed from the public index (PyPI). Ideally the additional[[sources]]
paragraph would be added to the Pipefile and the private package's "index" key would point to this "extra-index-url" as its source.I understand that this service just may not be provided by
pipenv
(yet?), but I wonder if there is some existing solution that i'm not finding.Actual result
pipenv can't find the private package to collect/install it. This is using either the
-i
or--extra-index-url
as mentioned above.Steps to replicate
install_requires
in itssetup.py
to specify some public package as a dependency (e.g.,pandas
)pipenv
pipenv install pkgname --extra-index-url <link-to-index>
The text was updated successfully, but these errors were encountered: