polite-garden-50641
08/30/2022, 2:56 PMCaused by:
command ["/tmp/pants-sandbox-A9W6vX/.cache/pyoxidizer/python_distributions/python.1c490d71269e/python/install/bin/python3.9", "-m", "pip", "--disable-pip-version-check", "install", "--target", "/tmp/pyoxidizer-pip-installjeHPfR/install", "pantsbuild.pants-2.15.0.dev0-cp37-cp37m-linux_x86_64.whl"] exited with code 1
--> ./pyoxidizer.bzl:21:30
|
21 | exe.add_python_resources(exe.pip_install(['pantsbuild.pants-2.15.0.dev0-cp37-cp37m-linux_x86_64.whl']))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PythonExecutable.pip_install()
error: calling pip install
to repo run ./pants package src/python/::
(this is on linux, didn't try on mac).polite-garden-50641
08/30/2022, 2:56 PM14:55:30.95 [INFO] Initializing scheduler...
14:55:31.48 [INFO] Scheduler initialized.
14:55:32.79 [INFO] View on BuildSense: <https://app.toolchain.com/organizations/pantsbuild/repos/pants/builds/pants_run_2022_08_30_14_55_31_679_76b7b3a041514b65b7916ac07b91df29/>
14:55:41.45 [INFO] Completed: Building src/python/pants/bin:pants_oxidized_experimental with PyOxidizer
14:55:41.45 [ERROR] 1 Exception encountered:
Engine traceback:
in select
in pants.core.goals.package.package_asset
in pants.backend.python.packaging.pyoxidizer.rules.package_pyoxidizer_binary (src/python/pants/bin:pants_oxidized_experimental)
in pants.engine.process.fallible_to_exec_result_or_raise
Traceback (most recent call last):
File "/data/home/asher/projects/pants2/src/python/pants/engine/process.py", line 272, in fallible_to_exec_result_or_raise
raise ProcessExecutionFailure(
pants.engine.process.ProcessExecutionFailure: Process 'Building src/python/pants/bin:pants_oxidized_experimental with PyOxidizer' failed with exit code 1.
stdout:
resolving 1 targets
resolving target install
resolving target exe
resolving Python distribution <https://github.com/indygreg/python-build-standalone/releases/download/20211017/cpython-3.9.7-x86_64-unknown-linux-gnu-pgo-20211017T1616.tar.zst> (sha256=1c490d71269eaeebe4de109d9bd1d22281cc028f2161bfe467f6df31de326e3a)
Python distribution available at /tmp/pants-sandbox-JxgxLJ/.cache/pyoxidizer/python_distributions/cpython-3.9.7-x86_64-unknown-linux-gnu-pgo-20211017T1616.tar.zst
reading data from Python distribution...
installing modified distutils to /tmp/pyoxidizer-pip-installa8WwD5/packages
modifying distutils/_msvccompiler.py for oxidation
modifying distutils/command/build_ext.py for oxidation
modifying distutils/unixccompiler.py for oxidation
pip installing to /tmp/pyoxidizer-pip-installa8WwD5/install
ERROR: pantsbuild.pants-2.15.0.dev0-cp37-cp37m-linux_x86_64.whl is not a supported wheel on this platform.
error[PYOXIDIZER_PYTHON_EXECUTABLE]: calling pip install
Caused by:
command ["/tmp/pants-sandbox-JxgxLJ/.cache/pyoxidizer/python_distributions/python.1c490d71269e/python/install/bin/python3.9", "-m", "pip", "--disable-pip-version-check", "install", "--target", "/tmp/pyoxidizer-pip-installa8WwD5/install", "pantsbuild.pants-2.15.0.dev0-cp37-cp37m-linux_x86_64.whl"] exited with code 1
--> ./pyoxidizer.bzl:21:30
|
21 | exe.add_python_resources(exe.pip_install(['pantsbuild.pants-2.15.0.dev0-cp37-cp37m-linux_x86_64.whl']))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PythonExecutable.pip_install()
error: calling pip install
Caused by:
command ["/tmp/pants-sandbox-JxgxLJ/.cache/pyoxidizer/python_distributions/python.1c490d71269e/python/install/bin/python3.9", "-m", "pip", "--disable-pip-version-check", "install", "--target", "/tmp/pyoxidizer-pip-installa8WwD5/install", "pantsbuild.pants-2.15.0.dev0-cp37-cp37m-linux_x86_64.whl"] exited with code 1
stderr:
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
polite-garden-50641
08/30/2022, 2:56 PMpolite-garden-50641
08/30/2022, 2:56 PMwide-midnight-78598
08/30/2022, 3:02 PMancient-vegetable-10556
08/30/2022, 3:04 PMpackage ::
before, and yes, the default interpreter constrains can’t build the PyOxidized binary, because the rust binary gets built against the Python that runs pantsancient-vegetable-10556
08/30/2022, 3:04 PMnative_engine.so
against 3.7 and then PyOxidizer will failancient-vegetable-10556
08/30/2022, 3:16 PMpants package src/python::
— if there isn’t, then maybe I move the pyox stuff over to an experimental
top-level-directory?hundreds-father-404
08/30/2022, 3:24 PMskip_package
field. The issue there is you can't dynamically change BUILD files via the options system, so there would be no way to say "don't publish locally but do publish in CI"ancient-vegetable-10556
08/30/2022, 3:26 PMhundreds-father-404
08/30/2022, 3:28 PMancient-vegetable-10556
08/30/2022, 3:28 PMancient-vegetable-10556
08/30/2022, 3:29 PM<ROOT>/experimental/pyoxidized
hundreds-father-404
08/30/2022, 3:34 PMbuild-support/
?ancient-vegetable-10556
08/30/2022, 3:38 PMancient-vegetable-10556
08/30/2022, 3:44 PM./pants package build-support/::
🤷hundreds-father-404
08/30/2022, 3:45 PMbuild-support
, which is where our release scripts are. It's not perfect, but we don't need perfect hereancient-vegetable-10556
08/30/2022, 3:46 PM