Bug 1465758 - pip3 install <local tgz> fails
pip3 install <local tgz> fails
Product: Fedora
Classification: Fedora
Component: python3 (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Charalampos Stratakis
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-06-28 03:03 EDT by Antoine Cotten
Modified: 2017-06-28 14:55 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-06-28 11:57:29 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Antoine Cotten 2017-06-28 03:03:39 EDT
Description of problem:

A package built locally with setuptools ('python3 setup.py bdist') fails to install using pip3.

Version-Release number of selected component (if applicable):


How reproducible:

Consistently, both within and outside a venv.

Steps to Reproduce:

1. python3 setup.py bdist
2. pip3 install dist/mypackage.tar.gz

Actual results:

❯ pip3 install dist/kOVHernetes-0.0.1.dev0.linux-x86_64.tar.gz -v
Processing ./dist/kOVHernetes-0.0.1.dev0.linux-x86_64.tar.gz
  Running setup.py (path:/tmp/pip-jx6t6b_b-build/setup.py) egg_info for package from file:///home/acotten/Documents/git/kOVHernetes/dist/kOVHernetes-0.0.1.dev0.linux-x86_64.tar.gz
    Running command python setup.py egg_info
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib64/python3.6/tokenize.py", line 452, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-jx6t6b_b-build/setup.py'
Cleaning up...
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-jx6t6b_b-build/
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python3.6/site-packages/pip/commands/install.py", line 346, in run
  File "/usr/lib/python3.6/site-packages/pip/req/req_set.py", line 380, in prepare_files
  File "/usr/lib/python3.6/site-packages/pip/req/req_set.py", line 634, in _prepare_file
  File "/usr/lib/python3.6/site-packages/pip/req/req_set.py", line 129, in prep_for_dist
  File "/usr/lib/python3.6/site-packages/pip/req/req_install.py", line 439, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/usr/lib/python3.6/site-packages/pip/utils/__init__.py", line 707, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-jx6t6b_b-build/
Comment 1 Tomas Orsava 2017-06-28 07:20:26 EDT
Hi! Could you please provide the sources you're trying to build so we can reproduce the issue? A link to GH will do, for example.
Comment 2 Antoine Cotten 2017-06-28 11:38:09 EDT
Sure Tomas, I'm building https://github.com/antoineco/kOVHernetes.
Comment 3 Miro Hrončok 2017-06-28 11:51:25 EDT
Antoine, what exactly are you trying to achieve trough using `bdist`?
Comment 4 Miro Hrončok 2017-06-28 11:57:29 EDT
Reading https://docs.python.org/3.6/distutils/builtdist.html it seems bdist just calls bdist_dumb and that just creates an archive you are supposed to unpack to your PREFIX, not something that PIP is supposed to install.

Please either create a sdist or bdist_wheel. Both are quite installable with pip (you need python3-wheel to create bdist_wheel).
Comment 5 Antoine Cotten 2017-06-28 14:55:20 EDT
Sorry if I was mistaken and thanks for catching this in the docs. It worked on F25 but this behaviour must simply come from the different version of setuptools that comes with F26.

Note You need to log in before you can comment on or make changes to this bug.