-
Notifications
You must be signed in to change notification settings - Fork 3.1k
--find-links doesn't find setuptools package as depenency #5268
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
Comments
Having the same issue, but not using --find-links, just trying to install any recent pytest |
In our case, this was because we have a whitelisting HTTP proxy and hadn't added pypi.org, which I guess is a new location. We previously had pypi.python.org. |
@chewi: that's an entirely different issue; OP is using @amit7itz: I believe your hitting the limitations of PEP 518 support; installing building dependencies is limited to binaries. Running with #5286 should make it clearer (to install: For now, I suggest disabling build isolation ( |
Hi @benoit-pierre, and thanks for your response. Command "/tmp/venv/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-fl1avb3h --no-warn-script-location --only-binary :all: --no-index --find-links mypackages -- setuptools wheel" failed with error code 1 in None I also tried the regular pip edition with the the Thanks very much! |
I should have been clearer: |
This is due to hitting the limitations of the current support for PEP 518. These limitations likely will be relaxed in the next release, in July. |
Closing since this issue seems to have been resolved. |
@pradyunsg this issue still happens.. it should be reopened, the given solution is just a workaround. |
@amit7itz Have you tested the issue with the current development version of pip? That's what we're saying has resolved the issue (and that code will be released soon as the next version of pip). |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description:
Hi,
I'm trying to install python packages from a directory.
Since I upgraded from pip 9.0.3 to pip 10.0.0, the installation command fails with an error that it doesn't find setuptools, although it is already installed, and it exists in the same directory where the package we install exists.
What I've run:
Trying to install pytest from my packages directory fails.
(venv) [root@centos_slave1 ctd]# python3 -m pip install --no-binary :all: --find-links mypackages --no-index pytest==3.4.0
Looking in links: mypackages
Collecting pytest==3.4.0
Could not find a version that satisfies the requirement setuptools (from versions: )
No matching distribution found for setuptools
Although the setuptools package exists in the directory
(venv) [root@centos_slave1 ctd]# ls ./mypackages/
attrs-17.4.0.tar.gz py-1.5.2.tar.gz pytest-benchmark-3.1.1.tar.gz pytest-flask-0.10.0.tar.gz pytest-xdist-1.22.0.tar.gz six-1.10.0.tar.gz
pluggy-0.6.0.tar.gz pytest-3.4.0.tar.gz pytest-cov-2.5.1.tar.gz pytest-forked-0.2.tar.gz setuptools-39.0.1.zip six-1.11.0.tar.gz
And the setuptools is already installed
(venv) [root@centos_slave1 ctd]# pip freeze --all
pip==10.0.0
setuptools==39.0.1
six==1.11.0
wheel==0.31.0
If I downgrade to pip 9.0.3, the installation succeed.
(venv) [root@centos_slave1 ctd]# pip install pip==9.0.3
Collecting pip==9.0.3
Downloading https://files.pythonhosted.org/packages/ac/95/a05b56bb975efa78d3557efa36acaf9cf5d2fd0ee0062060493687432e03/pip-9.0.3-py2.py3-none-any.whl (1.4MB)
100% |████████████████████████████████| 1.4MB 1.5MB/s
Installing collected packages: pip
Found existing installation: pip 10.0.0
Uninstalling pip-10.0.0:
Successfully uninstalled pip-10.0.0
Successfully installed pip-9.0.3
You are using pip version 9.0.3, however version 10.0.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(venv) [root@centos_slave1 ctd]# python3 -m pip install --no-binary :all: --find-links mypackages --no-index pytest==3.4.0
Collecting pytest==3.4.0
Collecting py>=1.5.0 (from pytest==3.4.0)
Requirement already satisfied: six>=1.10.0 in /opt/icsranger/venv/lib/python3.4/site-packages (from pytest==3.4.0)
Requirement already satisfied: setuptools in /opt/icsranger/venv/lib/python3.4/site-packages (from pytest==3.4.0)
Collecting attrs>=17.2.0 (from pytest==3.4.0)
Collecting pluggy<0.7,>=0.5 (from pytest==3.4.0)
Skipping bdist_wheel for pytest, due to binaries being disabled for it.
Skipping bdist_wheel for py, due to binaries being disabled for it.
Skipping bdist_wheel for attrs, due to binaries being disabled for it.
Skipping bdist_wheel for pluggy, due to binaries being disabled for it.
Installing collected packages: py, attrs, pluggy, pytest
Running setup.py install for py ... done
Running setup.py install for attrs ... done
Running setup.py install for pluggy ... done
Running setup.py install for pytest ... done
Successfully installed attrs-17.4.0 pluggy-0.6.0 py-1.5.2 pytest-3.4.0
The text was updated successfully, but these errors were encountered: