purple-van-78680
05/27/2020, 3:52 PMException message: Package SourcePackage('file:///Users/jay.lawrence/code/pantstheon/.pants.d/python-setup/resolved_requirements/CPython-3.7.7/PyYAML-5.3.1.tar.gz') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)
purple-van-78680
05/27/2020, 3:52 PMpurple-van-78680
05/27/2020, 3:55 PMpurple-van-78680
05/27/2020, 3:55 PMex: R: tags for Platform(platform='macosx_10_15_x86_64', impl='cp', version='37', abi='cp37m') x PythonInterpreter('/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/bin/python3.7', PythonIdentity('cp', 'cp37m', '37', 3, 7, 7)) -> [('cp37', 'cp37m', 'macosx_10_15_x86_64'), ('cp37', 'cp37m', 'macosx_10_15_intel'), ('cp37', 'cp37m', 'macosx_10_15_fat64'), ('cp37', 'cp37m', 'macosx_10_15_fat32'), ('cp37', 'cp37m', 'macosx_10_15_universal'), ... ]
pex: Constructed RequestsContext context <pex.http.RequestsContext object at 0x10fcc5d90>
pex: crawling link i=0 link=Link('file:///Users/jay.lawrence/code/pantstheon/.pants.d/python-setup/resolved_requirements/CPython-3.7.7') follow_links=False
pex: crawling link i=0 link=Link('file:///Users/<user>/code/<repo>/3rdparty/python/wheelhouse') follow_links=False
pex: crawling link i=1 link=Link('<https://pypi.org/simple/pyyaml/>') follow_links=False
pex: Fetching file:///Users/<user>/code/<repo>/.pants.d/python-setup/resolved_requirements/CPython-3.7.7/PyYAML-5.3.1-cp37-cp37m-macosx_10_15_x86_64.whl :: Fetching file:///Users/jay.lawrence/codepex: Fetching file:///Users/<user>/code/<repo>/.pants.d/python-setup/resolved_requirements/CPython-3.7.7/PyYAML-5.3.1-cp37-cp37m-macosx_10_15_x86_64.whl: 1.5ms
pex: Fetching file:///Users/<user>/code/<repo>/python-setup/resolved_requirements/CPython-3.7.7/PyYAML-5.3.1-cp37-cp37m-macosx_10_15_x86_64.whl: 0.6ms
pex: Translating /private/var/folders/pf/dcm97_h14qj0ylrsp91gx0k4ssnkj4/T/tmp5syvia8n/PyYAML-5.3.1-cp37-cp37m-macosx_10_15_x86_64.whl into distribution: 4.2ms
pex: R: tags for Platform(platform='linux_x86_64', impl=None, version=None, abi=None) x PythonInterpreter('/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/bin/python3.7', PythonIdentity('cp', 'cp37m', '37', 3, 7, 7)) -> [('cp37', 'abi3', 'manylinux1_x86_64'), ('cp33', 'abi3', 'manylinux1_x86_64'), ('cp37', 'cp37u', 'linux_x86_64'), ('cp37', 'cp37dm', 'manylinux1_x86_64'), ('py3', 'none', 'any'), ('cp32', 'abi3', 'manylinux1_x86_64'), ('cp37', 'cp37dm', 'linux_x86_64'), ('py36', 'none', 'any'), ('py3', 'none', 'manylinux1_x86_64'), ('cp37', 'abi3', 'linux_x86_64'), ('cp33', 'abi3', 'linux_x86_64'), ('cp3', 'none', 'any'), ('cp34', 'abi3', 'linux_x86_64'), ('cp37', 'cp37m', 'linux_x86_64'), ('py3', 'none', 'linux_x86_64'), ('cp35', 'abi3', 'linux_x86_64'), ('py30', 'none', 'any'), ('cp37', 'none', 'manylinux1_x86_64'), ('cp32', 'abi3', 'linux_x86_64'), ('py33', 'none', 'any'), ('cp37', 'cp37mu', 'manylinux1_x86_64'), ('py35', 'none', 'any'), ('cp37', 'cp37mu', 'linux_x86_64'), ('cp37', 'none', 'any'), ('cp37', 'cp37dmu', 'manylinux1_x86_64'), ('cp37', 'cp37u', 'manylinux1_x86_64'), ('py32', 'none', 'any'), ('py37', 'none', 'any'), ('cp36', 'abi3', 'manylinux1_x86_64'), ('py34', 'none', 'any'), ('cp37', 'none', 'linux_x86_64'), ('py31', 'none', 'any'), ('cp37', 'cp37d', 'manylinux1_x86_64'), ('cp34', 'abi3', 'manylinux1_x86_64'), ('cp35', 'abi3', 'manylinux1_x86_64'), ('cp37', 'cp37d', 'linux_x86_64'), ('cp37', 'cp37m', 'manylinux1_x86_64'), ('cp37', 'cp37dmu', 'linux_x86_64'), ('cp36', 'abi3', 'linux_x86_64')]
pex: Constructed RequestsContext context <pex.http.RequestsContext object at 0x1b912c85b90>
pex: Translating /private/var/folders/pf/dcm97_h14qj0ylrsp91gx0k4ssnkj4/T/tmpscet6umc/PyYAML-5.3.1.tar.gz into distribution :: Packaging PyYAML :: Installing /var/folders/pf/dcm97_h14qj0ylrsp91gx0k4ssnkj4/Tpex: Translating /private/var/folders/pf/dcm97_h14qj0ylrsp91gx0k4ssnkj4/T/tmpscet6umc/PyYAML-5.3.1.tar.gz into distribution :: Packaging PyYAML :: Installing /var/folders/pf/dcm97_h14qj0ylrsp91gx0k4ssnkj4/Tpex: Target package WheelPackage('file:///private/var/folders/pf/dcm97_h14qj0ylrsp91gx0k4ssnkj4/T/tmpugtxlkiv/PyYAML-5.3.1-cp37-cp37m-macosx_10_15_x86_64.whl') is not compatible with [('cp37', 'abi3', 'manylinux1_x86_64'), ('cp33', 'abi3', 'manylinux1_x86_64'), ('cp37', 'cp37u', 'linux_x86_64'), ('cp37', 'cp37dm', 'manylinux1_x86_64'), ('py3', 'none', 'any'), ('cp32', 'abi3', 'manylinux1_x86_64'), ('cp37', 'cp37dm', 'linux_x86_64'), ('py36', 'none', 'any'), ('py3', 'none', 'manylinux1_x86_64'), ('cp37', 'abi3', 'linux_x86_64'), ('cp33', 'abi3', 'linux_x86_64'), ('cp3', 'none', 'any'), ('cp34', 'abi3', 'linux_x86_64'), ('cp37', 'cp37m', 'linux_x86_64'), ('py3', 'none', 'linux_x86_64'), ('cp35', 'abi3', 'linux_x86_64'), ('py30', 'none', 'any'), ('cp37', 'none', 'manylinux1_x86_64'), ('cp32', 'abi3', 'linux_x86_64'), ('py33', 'none', 'any'), ('cp37', 'cp37mu', 'manylinux1_x86_64'), ('py35', 'none', 'any'), ('cp37', 'cp37mu', 'linux_x86_64'), ('cp37', 'none', 'any'), ('cp37', 'cp37dmu', 'manylinux1_x86_64'), ('cp37', 'cp37u', 'manylinux1_x86_64'), ('py32', 'none', 'any'), ('py37', 'none', 'any'), ('cp36', 'abi3', 'manylinux1_x86_64'), ('py34', 'none', 'any'), ('cp37', 'none', 'linux_x86_64'), ('py31', 'none', 'any'), ('cp37', 'cp37d', 'manylinux1_x86_64'), ('cp34', 'abi3', 'manylinux1_x86_64'), ('cp35', 'abi3', 'manylinux1_x86_64'), ('cp37', 'cp37d', 'linux_x86_64'), ('cp37', 'cp37m', 'manylinux1_x86_64'), ('cp37', 'cp37dmu', 'linux_x86_64'), ('cp36', 'abi3', 'linux_x86_64')]
pex: Translating /private/var/folders/pf/dcm97_h14qj0ylrsp91gx0k4ssnkj4/T/tmpscet6umc/PyYAML-5.3.1.tar.gz into distribution: 5164.6ms
pex: Packaging PyYAML: 4785.1ms
pex: Installing /var/folders/pf/dcm97_h14qj0ylrsp91gx0k4ssnkj4/T/tmpv1e9o0fp: 4783.7ms
pex: Isolating pex in Chroot(/var/folders/pf/dcm97_h14qj0ylrsp91gx0k4ssnkj4/T/tmp6md8nxi3 {fs:}): 178.5ms
purple-van-78680
05/27/2020, 3:56 PMpants.ini
(at version 1.25 and will convert to toml soon)
[python-setup]
interpreter_constraints: ['CPython==3.7.*']
interpreter_search_paths: ['/usr/local/bin']
platforms: ['current', 'linux-x86_64', 'macosx-10.9-x86_64']
purple-van-78680
05/27/2020, 3:57 PMpurple-van-78680
05/27/2020, 3:57 PMls -1 3rdparty/python/wheelhouse/
PyYAML-5.3.1-cp37-cp37m-linux_x86_64.whl
PyYAML-5.3.1-cp37-cp37m-macosx_10_15_x86_64.whl
PyYAML-5.3.1-cp37-cp37m-manylinux1_x86_64.whl
polite-garden-50641
05/27/2020, 5:37 PMpurple-van-78680
05/27/2020, 5:42 PMpurple-van-78680
05/27/2020, 5:58 PM~/bin/pex -v pyyaml==5.3.1 2
and seemed alright.purple-van-78680
05/27/2020, 5:59 PM./pants -q options --scope=python-setup --name=interpreter-constraints
python-setup.interpreter_constraints = ['CPython==3.7.*'] (from CONFIG in pants.ini)
purple-van-78680
05/27/2020, 5:59 PMpurple-van-78680
05/27/2020, 6:00 PMcurrent
, then I will be able to create the pex, but I am not able to provide any other platforms, which is the problem I do not understand right nowpolite-garden-50641
05/27/2020, 7:05 PMenough-analyst-54434
05/27/2020, 7:14 PMpurple-van-78680
05/27/2020, 7:33 PMenough-analyst-54434
05/27/2020, 7:41 PMpurple-van-78680
05/27/2020, 7:42 PMpurple-van-78680
05/27/2020, 7:42 PMpolite-garden-50641
05/27/2020, 7:54 PMpurple-van-78680
05/27/2020, 7:57 PM['linux-x86_64', 'manylinux1-x86_64', 'macosx-10.9-x86_64']
ERROR: Not a valid platform specifier: linux-x86_64
Platform strings must be in one of two forms:
1. Canonical: <platform>-<python impl abbr>-<python version>-<abi>
2. Abbreviated: <platform>-<python impl abbr>-<python version>-<abbr abi>
Given a canonical platform string for CPython 3.7.5 running on 64 bit linux of:
linux-x86_64-cp-37-cp37m
Where the fields above are:
+ <platform>: linux-x86_64
+ <python impl abbr>: cp
+ <python version>: 37
+ <abi>: cp37m
The abbreviated platform string is:
linux-x86_64-cp-37-m
hundreds-father-404
05/27/2020, 7:57 PM./pants
script by redownloading it (instructions in the email)hundreds-father-404
05/27/2020, 7:59 PMlinux-x86_64
refers to. With Python native wheels, there is a difference between something built for Python 3.5 vs. 3.6 etc. It wasnât safe that Pex 1.x allowed you to use this loose string.
Instead of linux-x86_64
, try linux-x86_64-cp-37-m
purple-van-78680
05/27/2020, 8:01 PMpurple-van-78680
05/27/2020, 8:03 PMhundreds-father-404
05/27/2020, 8:06 PM./pants test project/demo.py
, Pants will only run tests for that specific filepurple-van-78680
05/27/2020, 8:08 PMpurple-van-78680
05/27/2020, 8:10 PMhundreds-father-404
05/27/2020, 8:15 PMpants.backend.python
to the backend_packages2
option, along with any linters like pants.backend.python.lint.black
, then use --no-v1
or --no-v2
to turn off what you donât want. In our internal repo, we have a ./pants
script that uses V1, and a ./v2
script that calls ./pants
but with the option --v2
hardcoded.
By the way, is Rust going to be supposed outside of the engine?Good question! @hundreds-breakfast-49010 and I think @aloof-angle-91616 have been looking at adding it and have some works in progress. By the way, if you have a moment, it would be super helpful to fill out this survey https://t.co/za6xeOxZ6S (if you havenât yet) to help us plan the roadmap.
purple-van-78680
05/27/2020, 8:16 PM