-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
dependency_links flag ignored when package exists on PyPI #987
Comments
I don't know how dependency links work or how they're supposed to work. You'll need to dig into the docs and maybe the code and try to ascertain if what you're trying to do is supported and if so what needs to change to make it work. |
Hey @smcolby I just found your ticket here as I stumbled across a similar issue and googled. Did you try to add #egg=pyswarm to the line in the dependency links? It solved my similar problem, |
I've been faced with the same problem. I tried almost any combination in link field (in dependency_links array). Here is fragment from my
It doesn't solve the problem. Altough I can install |
It's because your missing a version in your link, since you ask for install_requires=[
'hbmqtt'
],
dependency_links=[
'git+https://github.com/beerfactory/hbmqtt.git@f4330985115e3ffb3ccbb102230dfd15bb822a72#egg=hbmqtt'
], or better tag your link version, e.g.: install_requires=[
'hbmqtt>0.9.0'
],
dependency_links=[
'git+https://github.com/beerfactory/hbmqtt.git@f4330985115e3ffb3ccbb102230dfd15bb822a72#egg=hbmqtt-0.9.1.dev'
], |
Master branch has version tuple in
I suppose version string, appended to tag is 0.9.1alpha0. I don't know, is it important or no.
Setuptools doesn't use git repo.
If I use link without tag, setuptools installs version from pypi.
In my workflow I use pyenv-virtualenv and install locally from wheel package file.
|
hbmqtt's master identify itself as:
so I think It does not seem to work when installing from wheel, however... |
Note that |
Yes, I tried different notation ( |
Ok, I had investigated this issue and concluded that it's not the problem of setuptools, it's problem of pip or even wheel. I asked the question on SO. I hope this discussion will help anybody who has the same problem as mine. |
did you try the |
@gijzelaerr, if I can remember, this flag didn't help me. |
Have the same problem. When will this be solved? |
Similar problem here: The installation with the local |
About dependency links: |
Closing, as dependency links support has been dropped in recent versions of pip. |
So what's the replacement? How are we supposed to support installation of packages from multiple indexes? |
Questions about installation should be directed to pip or the pypa discussion groups. I don't have the official answer, but I believe the answer is use |
I am relying on
pyswarm
for a package I am working on. PyPI's latest version is 0.6, but I need 0.7, which is only on GitHub. My stripped-down setup function is below:As shown here, the install fails with:
However, installing via
pip
works perfectly fine, satisfying pyswarm>=0.7:Why is
dependency_links
being ignored whensetup()
attempts to findpyswarm-0.7
? It appears that versions 0.5 and 0.6 are found on PyPI (and do not satisfy the requirements), but version 0.7 is not found via the GitHub link despite the fact thatpip
installs from the same link just fine.My current workaround is to run
pip install git+https://github.com/tisimst/pyswarm
viasubprocess.call()
beforesetup()
is called (thus satisfying thepyswarm>=0.7
requirement), but this should not be necessary.The text was updated successfully, but these errors were encountered: