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

Pex 1.4.1 installs windows eggs on linux/OSX #489

Closed
mcouthon opened this issue May 21, 2018 · 5 comments
Closed

Pex 1.4.1 installs windows eggs on linux/OSX #489

mcouthon opened this issue May 21, 2018 · 5 comments
Assignees
Labels

Comments

@mcouthon
Copy link

I've installed pex with pip install pex, then I created a minimal setup.py file in a folder named test that looks like this:

from setuptools import setup

setup(
    name='test',
    version='0.1',
    install_requires=[
        'netifaces==0.10.6'
    ]
)

And then I ran pex ./test -o /tmp/pex_out -vv and got this:

pex: Warning, using a UrllibContext which is known to be flaky.
pex: Please build pex with the requests module for more reliable downloads.
pex: Building pex :: Resolving distributions :: Fetching file:///private/var/folders/_y/mvhpw5jx7glc0vh5v3rkn1_80000gn/T/tmppBXELx/test-0.1.tar.gz :: Fetching file:///private/var/folpex: Building pex :: Resolving distributions :: Translating /private/var/folders/_y/mvhpw5jx7glc0vh5v3rkn1_80000gn/T/tmpnf6PUI/test-0.1.tar.gz into distribution                      pex: Building pex :: Resolving distributions :: Translating /private/var/folders/_y/mvhpw5jx7glc0vh5v3rkn1_80000gn/T/tmpnf6PUI/test-0.1.tar.gz into distribution :: Packaging test :: pex: Building pex :: Resolving distributions :: Fetching https://files.pythonhosted.org/packages/05/00/c719457bcb8f14f9a7b9244c3c5e203c40d041a364cf784cf554aaef8129/netifaces-0.10.6-ppex: Building pex :: Resolving distributions :: Fetching https://files.pythonhosted.org/packages/05/00/c719457bcb8f14f9a7b9244c3c5e203c40d041a364cf784cf554aaef8129/netifaces-0.10.6-py2.7-win32.egg#sha256=a0c7c19e1fb62ac6018582f72d15ac056e75c3d2ab222fb25369e7766ed67453 :: Fetching https://files.pythonhosted.org/packages/05/00/c719457bcb8f14f9a7b9244c3c5e203c40d04pex: Building pex :: Resolving distributions :: Translating /private/var/folders/_y/mvhpw5jx7glc0vh5v3rkn1_80000gn/T/tmpvIJ86R/netifaces-0.10.6-py2.7-win32.egg into distribution                                                                                                                                                                                             test 0.1
  netifaces 0.10.6
pex: Building pex: 1906.7ms
pex:   Resolving interpreters: 1.5ms
pex:     Setting up interpreter /Users/pavel/dev/venvs/tmp-e6d02aae4c88b079/bin/python: 1.4ms
pex:   Installing /var/folders/_y/mvhpw5jx7glc0vh5v3rkn1_80000gn/T/tmppBXELx: 327.4ms
pex:   Resolving distributions: 1572.9ms
pex:     Fetching file:///private/var/folders/_y/mvhpw5jx7glc0vh5v3rkn1_80000gn/T/tmppBXELx/test-0.1.tar.gz: 10.7ms
pex:       Fetching file:///private/var/folders/_y/mvhpw5jx7glc0vh5v3rkn1_80000gn/T/tmppBXELx/test-0.1.tar.gz: 10.0ms
pex:     Translating /private/var/folders/_y/mvhpw5jx7glc0vh5v3rkn1_80000gn/T/tmpnf6PUI/test-0.1.tar.gz into distribution: 379.7ms
pex:       Packaging test: 368.4ms
pex:         Installing /var/folders/_y/mvhpw5jx7glc0vh5v3rkn1_80000gn/T/tmppFxfJg: 366.5ms
pex:     Fetching https://files.pythonhosted.org/packages/05/00/c719457bcb8f14f9a7b9244c3c5e203c40d041a364cf784cf554aaef8129/netifaces-0.10.6-py2.7-win32.egg#sha256=a0c7c19e1fb62ac6018582f72d15ac056e75c3d2ab222fb25369e7766ed67453: 258.0ms
pex:       Fetching https://files.pythonhosted.org/packages/05/00/c719457bcb8f14f9a7b9244c3c5e203c40d041a364cf784cf554aaef8129/netifaces-0.10.6-py2.7-win32.egg#sha256=a0c7c19e1fb62ac6018582f72d15ac056e75c3d2ab222fb25369e7766ed67453: 257.0ms
pex:     Translating /private/var/folders/_y/mvhpw5jx7glc0vh5v3rkn1_80000gn/T/tmpvIJ86R/netifaces-0.10.6-py2.7-win32.egg into distribution: 1.3ms
Saving PEX file to /tmp/pex_out

As you can see, although I'm running on OSX, the netifaces egg that's fetched is a Windows one (https://files.pythonhosted.org/packages/05/00/c719457bcb8f14f9a7b9244c3c5e203c40d041a364cf784cf554aaef8129/netifaces-0.10.6-py2.7-win32.egg).

This works on pex==1.3.2

@kwlzn kwlzn added the bug label May 21, 2018
@kwlzn
Copy link
Contributor

kwlzn commented May 21, 2018

thanks for the bug report. will take a look.

@kwlzn
Copy link
Contributor

kwlzn commented May 22, 2018

repro on OSX:

[omerta pex (master)]$ pex netifaces==0.10.6 -o /tmp/throwaway.pex -vvvvvvvvvvv --no-wheel --disable-cache
pex: Warning, using a UrllibContext which is known to be flaky.                                                         
pex: Please build pex with the requests module for more reliable downloads.
pex: Constructed UrllibContext context <pex.http.UrllibContext object at 0x10547e450>
pex: R: tags for Platform(platform='macosx_10_13_x86_64', impl='cp', version='27', abi='cp27m') x PythonInterpreter('/Users/kwilson/Python/CPython-2.7.13/bin/python2.7', PythonIdentity('CPython', 2, 7, 13), {('pynd', '0.3.6'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('virtualenv', '15.1.0'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('packaging', '16.8'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('tox', '2.6.0'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('pbr', '3.0.0'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('appdirs', '1.4.2'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('setuptools', '33.1.1'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('pycparser', '2.17'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('wheel', '0.29.0'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('wsgiref', '0.1.2'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7', ('pip', '9.0.1'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('six', '1.10.0'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('python', '2.7.13'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/lib-dynload', ('pluggy', '0.4.0'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('cffi', '1.9.1'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('pex', '1.4.1'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('pyparsing', '2.1.10'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages', ('py', '1.4.32'): '/Users/kwilson/Python/CPython-2.7.13/lib/python2.7/site-packages'}) -> [('cp27', 'cp27m', 'macosx_10_13_x86_64'), ('cp27', 'cp27m', 'macosx_10_13_intel'), ('cp27', 'cp27m', 'macosx_10_13_fat64'), ('cp27', 'cp27m', 'macosx_10_13_fat32'), ('cp27', 'cp27m', 'macosx_10_13_universal'), ('cp27', 'cp27m', 'macosx_10_12_x86_64'), ('cp27', 'cp27m', 'macosx_10_12_intel'), ('cp27', 'cp27m', 'macosx_10_12_fat64'), ('cp27', 'cp27m', 'macosx_10_12_fat32'), ('cp27', 'cp27m', 'macosx_10_12_universal'), ('cp27', 'cp27m', 'macosx_10_11_x86_64'), ('cp27', 'cp27m', 'macosx_10_11_intel'), ('cp27', 'cp27m', 'macosx_10_11_fat64'), ('cp27', 'cp27m', 'macosx_10_11_fat32'), ('cp27', 'cp27m', 'macosx_10_11_universal'), ('cp27', 'cp27m', 'macosx_10_10_x86_64'), ('cp27', 'cp27m', 'macosx_10_10_intel'), ('cp27', 'cp27m', 'macosx_10_10_fat64'), ('cp27', 'cp27m', 'macosx_10_10_fat32'), ('cp27', 'cp27m', 'macosx_10_10_universal'), ('cp27', 'cp27m', 'macosx_10_9_x86_64'), ('cp27', 'cp27m', 'macosx_10_9_intel'), ('cp27', 'cp27m', 'macosx_10_9_fat64'), ('cp27', 'cp27m', 'macosx_10_9_fat32'), ('cp27', 'cp27m', 'macosx_10_9_universal'), ('cp27', 'cp27m', 'macosx_10_8_x86_64'), ('cp27', 'cp27m', 'macosx_10_8_intel'), ('cp27', 'cp27m', 'macosx_10_8_fat64'), ('cp27', 'cp27m', 'macosx_10_8_fat32'), ('cp27', 'cp27m', 'macosx_10_8_universal'), ('cp27', 'cp27m', 'macosx_10_7_x86_64'), ('cp27', 'cp27m', 'macosx_10_7_intel'), ('cp27', 'cp27m', 'macosx_10_7_fat64'), ('cp27', 'cp27m', 'macosx_10_7_fat32'), ('cp27', 'cp27m', 'macosx_10_7_universal'), ('cp27', 'cp27m', 'macosx_10_6_x86_64'), ('cp27', 'cp27m', 'macosx_10_6_intel'), ('cp27', 'cp27m', 'macosx_10_6_fat64'), ('cp27', 'cp27m', 'macosx_10_6_fat32'), ('cp27', 'cp27m', 'macosx_10_6_universal'), ('cp27', 'cp27m', 'macosx_10_5_x86_64'), ('cp27', 'cp27m', 'macosx_10_5_intel'), ('cp27', 'cp27m', 'macosx_10_5_fat64'), ('cp27', 'cp27m', 'macosx_10_5_fat32'), ('cp27', 'cp27m', 'macosx_10_5_universal'), ('cp27', 'cp27m', 'macosx_10_4_x86_64'), ('cp27', 'cp27m', 'macosx_10_4_intel'), ('cp27', 'cp27m', 'macosx_10_4_fat64'), ('cp27', 'cp27m', 'macosx_10_4_fat32'), ('cp27', 'cp27m', 'macosx_10_4_universal'), ('cp27', 'cp27m', 'macosx_10_3_fat32'), ('cp27', 'cp27m', 'macosx_10_3_universal'), ('cp27', 'cp27m', 'macosx_10_2_fat32'), ('cp27', 'cp27m', 'macosx_10_2_universal'), ('cp27', 'cp27m', 'macosx_10_1_fat32'), ('cp27', 'cp27m', 'macosx_10_1_universal'), ('cp27', 'cp27m', 'macosx_10_0_fat32'), ('cp27', 'cp27m', 'macosx_10_0_universal'), ('cp27', 'none', 'macosx_10_13_x86_64'), ('cp27', 'none', 'macosx_10_13_intel'), ('cp27', 'none', 'macosx_10_13_fat64'), ('cp27', 'none', 'macosx_10_13_fat32'), ('cp27', 'none', 'macosx_10_13_universal'), ('cp27', 'none', 'macosx_10_12_x86_64'), ('cp27', 'none', 'macosx_10_12_intel'), ('cp27', 'none', 'macosx_10_12_fat64'), ('cp27', 'none', 'macosx_10_12_fat32'), ('cp27', 'none', 'macosx_10_12_universal'), ('cp27', 'none', 'macosx_10_11_x86_64'), ('cp27', 'none', 'macosx_10_11_intel'), ('cp27', 'none', 'macosx_10_11_fat64'), ('cp27', 'none', 'macosx_10_11_fat32'), ('cp27', 'none', 'macosx_10_11_universal'), ('cp27', 'none', 'macosx_10_10_x86_64'), ('cp27', 'none', 'macosx_10_10_intel'), ('cp27', 'none', 'macosx_10_10_fat64'), ('cp27', 'none', 'macosx_10_10_fat32'), ('cp27', 'none', 'macosx_10_10_universal'), ('cp27', 'none', 'macosx_10_9_x86_64'), ('cp27', 'none', 'macosx_10_9_intel'), ('cp27', 'none', 'macosx_10_9_fat64'), ('cp27', 'none', 'macosx_10_9_fat32'), ('cp27', 'none', 'macosx_10_9_universal'), ('cp27', 'none', 'macosx_10_8_x86_64'), ('cp27', 'none', 'macosx_10_8_intel'), ('cp27', 'none', 'macosx_10_8_fat64'), ('cp27', 'none', 'macosx_10_8_fat32'), ('cp27', 'none', 'macosx_10_8_universal'), ('cp27', 'none', 'macosx_10_7_x86_64'), ('cp27', 'none', 'macosx_10_7_intel'), ('cp27', 'none', 'macosx_10_7_fat64'), ('cp27', 'none', 'macosx_10_7_fat32'), ('cp27', 'none', 'macosx_10_7_universal'), ('cp27', 'none', 'macosx_10_6_x86_64'), ('cp27', 'none', 'macosx_10_6_intel'), ('cp27', 'none', 'macosx_10_6_fat64'), ('cp27', 'none', 'macosx_10_6_fat32'), ('cp27', 'none', 'macosx_10_6_universal'), ('cp27', 'none', 'macosx_10_5_x86_64'), ('cp27', 'none', 'macosx_10_5_intel'), ('cp27', 'none', 'macosx_10_5_fat64'), ('cp27', 'none', 'macosx_10_5_fat32'), ('cp27', 'none', 'macosx_10_5_universal'), ('cp27', 'none', 'macosx_10_4_x86_64'), ('cp27', 'none', 'macosx_10_4_intel'), ('cp27', 'none', 'macosx_10_4_fat64'), ('cp27', 'none', 'macosx_10_4_fat32'), ('cp27', 'none', 'macosx_10_4_universal'), ('cp27', 'none', 'macosx_10_3_fat32'), ('cp27', 'none', 'macosx_10_3_universal'), ('cp27', 'none', 'macosx_10_2_fat32'), ('cp27', 'none', 'macosx_10_2_universal'), ('cp27', 'none', 'macosx_10_1_fat32'), ('cp27', 'none', 'macosx_10_1_universal'), ('cp27', 'none', 'macosx_10_0_fat32'), ('cp27', 'none', 'macosx_10_0_universal'), ('py2', 'none', 'macosx_10_13_x86_64'), ('py2', 'none', 'macosx_10_13_intel'), ('py2', 'none', 'macosx_10_13_fat64'), ('py2', 'none', 'macosx_10_13_fat32'), ('py2', 'none', 'macosx_10_13_universal'), ('py2', 'none', 'macosx_10_12_x86_64'), ('py2', 'none', 'macosx_10_12_intel'), ('py2', 'none', 'macosx_10_12_fat64'), ('py2', 'none', 'macosx_10_12_fat32'), ('py2', 'none', 'macosx_10_12_universal'), ('py2', 'none', 'macosx_10_11_x86_64'), ('py2', 'none', 'macosx_10_11_intel'), ('py2', 'none', 'macosx_10_11_fat64'), ('py2', 'none', 'macosx_10_11_fat32'), ('py2', 'none', 'macosx_10_11_universal'), ('py2', 'none', 'macosx_10_10_x86_64'), ('py2', 'none', 'macosx_10_10_intel'), ('py2', 'none', 'macosx_10_10_fat64'), ('py2', 'none', 'macosx_10_10_fat32'), ('py2', 'none', 'macosx_10_10_universal'), ('py2', 'none', 'macosx_10_9_x86_64'), ('py2', 'none', 'macosx_10_9_intel'), ('py2', 'none', 'macosx_10_9_fat64'), ('py2', 'none', 'macosx_10_9_fat32'), ('py2', 'none', 'macosx_10_9_universal'), ('py2', 'none', 'macosx_10_8_x86_64'), ('py2', 'none', 'macosx_10_8_intel'), ('py2', 'none', 'macosx_10_8_fat64'), ('py2', 'none', 'macosx_10_8_fat32'), ('py2', 'none', 'macosx_10_8_universal'), ('py2', 'none', 'macosx_10_7_x86_64'), ('py2', 'none', 'macosx_10_7_intel'), ('py2', 'none', 'macosx_10_7_fat64'), ('py2', 'none', 'macosx_10_7_fat32'), ('py2', 'none', 'macosx_10_7_universal'), ('py2', 'none', 'macosx_10_6_x86_64'), ('py2', 'none', 'macosx_10_6_intel'), ('py2', 'none', 'macosx_10_6_fat64'), ('py2', 'none', 'macosx_10_6_fat32'), ('py2', 'none', 'macosx_10_6_universal'), ('py2', 'none', 'macosx_10_5_x86_64'), ('py2', 'none', 'macosx_10_5_intel'), ('py2', 'none', 'macosx_10_5_fat64'), ('py2', 'none', 'macosx_10_5_fat32'), ('py2', 'none', 'macosx_10_5_universal'), ('py2', 'none', 'macosx_10_4_x86_64'), ('py2', 'none', 'macosx_10_4_intel'), ('py2', 'none', 'macosx_10_4_fat64'), ('py2', 'none', 'macosx_10_4_fat32'), ('py2', 'none', 'macosx_10_4_universal'), ('py2', 'none', 'macosx_10_3_fat32'), ('py2', 'none', 'macosx_10_3_universal'), ('py2', 'none', 'macosx_10_2_fat32'), ('py2', 'none', 'macosx_10_2_universal'), ('py2', 'none', 'macosx_10_1_fat32'), ('py2', 'none', 'macosx_10_1_universal'), ('py2', 'none', 'macosx_10_0_fat32'), ('py2', 'none', 'macosx_10_0_universal'), ('cp27', 'none', 'any'), ('cp2', 'none', 'any'), ('py27', 'none', 'any'), ('py2', 'none', 'any')]
pex: crawling link i=0 link=Link('https://pypi.python.org/simple/netifaces/') follow_links=False
pex: Building pex :: Resolving distributions :: Fetching https://files.pythonhosted.org/packages/05/00/c719457bcb8f14f9a7b9244c3c5e203c4pex: Building pex :: Resolving distributions :: Fetching https://files.pythonhosted.org/packages/05/00/c719457bcb8f14f9a7b9244c3c5e203c40d041a364cf784cf554aaef8129/netifaces-0.10.6-py2.7-win32.egg#sha256=a0c7c19e1fb62ac6018582f72d15ac056e75c3d2ab222fb25369e7766ed67453 :: Fetching https://files.pythonhosted.org/packages/05/00/c719457bcb8f14f9a7b9244c3c5e203c40d041a364cf784cf554aaef8129/netifaces-0.10.6-py2pex: Building pex :: Resolving distributions :: Translating /private/var/folders/kd/k5b__qgs0gl5yzp48gctmhz80000gn/T/tmpe8OmEy/netifaces-0.10.6-py2.7-win32.egg into distribution                                                                                                                                                                                                                                         netifaces 0.10.6                                                                  
pex: Building pex: 415.4ms                                                                                                                                                       
pex:   Resolving interpreters: 0.8ms
pex:     Setting up interpreter /Users/kwilson/Python/CPython-2.7.13/bin/python2.7: 0.7ms
pex:   Resolving distributions: 404.8ms
pex:     Fetching https://files.pythonhosted.org/packages/05/00/c719457bcb8f14f9a7b9244c3c5e203c40d041a364cf784cf554aaef8129/netifaces-0.10.6-py2.7-win32.egg#sha256=a0c7c19e1fb62ac6018582f72d15ac056e75c3d2ab222fb25369e7766ed67453: 88.5ms
pex:       Fetching https://files.pythonhosted.org/packages/05/00/c719457bcb8f14f9a7b9244c3c5e203c40d041a364cf784cf554aaef8129/netifaces-0.10.6-py2.7-win32.egg#sha256=a0c7c19e1fb62ac6018582f72d15ac056e75c3d2ab222fb25369e7766ed67453: 87.7ms
pex:     Translating /private/var/folders/kd/k5b__qgs0gl5yzp48gctmhz80000gn/T/tmpe8OmEy/netifaces-0.10.6-py2.7-win32.egg into distribution: 6.7ms
Saving PEX file to /tmp/throwaway.pex

@kwlzn
Copy link
Contributor

kwlzn commented May 23, 2018

this (unfortunately) regressed in #486, so only affects version 1.4.1.

fix out here: #493

should be able to get 1.4.2 out tomorrow.

@kwlzn kwlzn self-assigned this May 23, 2018
kwlzn added a commit that referenced this issue May 23, 2018
@kwlzn
Copy link
Contributor

kwlzn commented May 23, 2018

1.4.2 is out: https://pypi.org/project/pex/1.4.2/

@mcouthon
Copy link
Author

Thanks a lot for the awesomely quick support!

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

No branches or pull requests

2 participants