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

Unicorn 2.1.0 doesn't install from tar.gz with Python 2.7 (setuptools problem) #2008

Open
gerph opened this issue Sep 22, 2024 · 2 comments
Open

Comments

@gerph
Copy link
Contributor

gerph commented Sep 22, 2024

Summary

Installing Unicorn for Python 2.7 fails when installing with Python 2.7 when the tar.gz is used. This will happen on any platform which does not already have a suitable wheel present. It would also be seen if a version of pip prior to the introduction of the wheel architecture changes is installed (eg around 19.x or earlier).

This might not be a big deal as there may already be versions present for all the major OS versions that are supported, but it's a thing that currently happens.

As such this is probably not a very important bug.

Steps to provoke

  • docker run -it --rm ubuntu:18.04
  • apt-get update && apt-get install -y python python-pip
  • pip install --no-binary :all: -U unicorn

Failing output

root@1f1c3e7f8599:/# pip install --no-binary :all: -U unicorn
Collecting unicorn
  Downloading https://files.pythonhosted.org/packages/44/87/6e4710dee0716c7d75ad759ee0bbe7ae2d73624c5722749b4d7d55055a43/unicorn-2.1.0.tar.gz (2.8MB)
    100% |################################| 2.8MB 345kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-PyeJCM/unicorn/setup.py", line 16, in <module>
        from setuptools.command.build import build
    ImportError: No module named build
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-PyeJCM/unicorn/

Expected behaviour

You would expect it to build and install the package.

@wtdcode
Copy link
Member

wtdcode commented Sep 22, 2024

This shall be fixed by pip install -U pip wheel setuptools ?

@wtdcode
Copy link
Member

wtdcode commented Sep 22, 2024

Oh yes, you are correct. I understand the context.

Maybe this can be fixed by using egg, but as you suggested, the priority won't be very high.

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

No branches or pull requests

2 participants