Skip to content
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

setup_requires makes pip failing #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vbauchart
Copy link

setup_requires makes pip failing when using own devpi repository because it does honor PIP_INDEX_URL

Btw using setup_requires is now deprecated in setuptools itself
pypa/setuptools#1320 (comment)

setup_requires make pip failing when using own devpi repository because it does honor PIP_INDEX_URL

Btw using setup_requires is now deprecated in setuptools itself
pypa/setuptools#1320 (comment)
@vbauchart
Copy link
Author

here is my full error.
As you can see, he tries to connect on internet instead of using my own repository

# pip --version
pip 19.3.1 from /opt/rh/rh-python38/root/usr/lib/python3.8/site-packages/pip (python 3.8)

# pip install sagecipher
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip install --user` instead.
Looking in indexes: https://****/artifactory/api/pypi/remote-global-pypi-release/simple/
Collecting sagecipher
  Downloading https://https://****/artifactory/api/pypi/remote-global-pypi-release/simple/
/artifactory/api/pypi/remote-global-pypi-release/packages/packages/79/bb/5cf41087b5eb5b8482023b5d0b885c54311900c96e434d78749c69941deb/sagecipher-0.7.5.tar.gz
    ERROR: Command errored out with exit status 1:
     command: /opt/rh/rh-python38/root/usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-x8yqbguq/sagecipher/setup.py'"'"'; __file__='"'"'/tmp/pip-install-x8yqbguq/sagecipher/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-x8yqbguq/sagecipher/pip-egg-info
         cwd: /tmp/pip-install-x8yqbguq/sagecipher/
    Complete output (25 lines):
    Download error on https://pypi.org/simple/pytest-runner/: [Errno -2] Name or service not known -- Some packages may not be found!
    Couldn't find index page for 'pytest-runner' (maybe misspelled?)
    Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
    No local packages or working download links found for pytest-runner
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-x8yqbguq/sagecipher/setup.py", line 10, in <module>
        setup(
      File "/opt/rh/rh-python38/root/usr/lib/python3.8/site-packages/setuptools/__init__.py", line 144, in setup
        _install_setup_requires(attrs)
      File "/opt/rh/rh-python38/root/usr/lib/python3.8/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/opt/rh/rh-python38/root/usr/lib/python3.8/site-packages/setuptools/dist.py", line 717, in fetch_build_eggs
        resolved_dists = pkg_resources.working_set.resolve(
      File "/opt/rh/rh-python38/root/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 780, in resolve
        dist = best[req.key] = env.best_match(
      File "/opt/rh/rh-python38/root/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1065, in best_match
        return self.obtain(req, installer)
      File "/opt/rh/rh-python38/root/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1077, in obtain
        return installer(requirement)
      File "/opt/rh/rh-python38/root/usr/lib/python3.8/site-packages/setuptools/dist.py", line 787, in fetch_build_egg
        return cmd.easy_install(req)
      File "/opt/rh/rh-python38/root/usr/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 678, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant