clean-night-52582
09/30/2021, 6:45 PMpython-native-code
Is this only for resolving third party deps or is there a way to build c bindings locally? Was also thinking about trying python_ditribution
happy-kitchen-89482
09/30/2021, 7:18 PMhappy-kitchen-89482
09/30/2021, 7:18 PMhappy-kitchen-89482
09/30/2021, 7:18 PMclean-night-52582
09/30/2021, 7:19 PMhundreds-father-404
09/30/2021, 7:31 PMclean-night-52582
09/30/2021, 7:51 PMpython_ditribution
be used as a dep for a python_library
was able to build the wheel that way?happy-kitchen-89482
09/30/2021, 8:37 PMhappy-kitchen-89482
09/30/2021, 8:37 PMpython_library
depends on a python_distribution
then that distribution will be built locally and available for import in test
, run
and repl
happy-kitchen-89482
09/30/2021, 8:38 PMhappy-kitchen-89482
09/30/2021, 8:38 PMpackage
some binary that depends on that python_library
clean-night-52582
09/30/2021, 8:45 PMhappy-kitchen-89482
09/30/2021, 11:53 PMhappy-kitchen-89482
09/30/2021, 11:55 PMcurved-television-6568
10/01/2021, 10:38 AM$ ./pants package testprojects/src/python/native:
12:38:07.56 [ERROR] Exception caught: (pants.engine.internals.scheduler.ExecutionError)
File "/Users/aadt/src/github/kaos/pants/src/python/pants/bin/local_pants_runner.py", line 236, in _run_inner
return self._perform_run(goals)
File "/Users/aadt/src/github/kaos/pants/src/python/pants/bin/local_pants_runner.py", line 175, in _perform_run
return self._perform_run_body(goals, poll=False)
File "/Users/aadt/src/github/kaos/pants/src/python/pants/bin/local_pants_runner.py", line 192, in _perform_run_body
return self.graph_session.run_goal_rules(
File "/Users/aadt/src/github/kaos/pants/src/python/pants/init/engine_initializer.py", line 135, in run_goal_rules
exit_code = self.scheduler_session.run_goal_rule(
File "/Users/aadt/src/github/kaos/pants/src/python/pants/engine/internals/scheduler.py", line 544, in run_goal_rule
self._raise_on_error([t for _, t in throws])
File "/Users/aadt/src/github/kaos/pants/src/python/pants/engine/internals/scheduler.py", line 503, in _raise_on_error
raise ExecutionError(
Exception message: 1 Exception encountered:
Engine traceback:
in select
in pants.core.goals.package.package_asset
in pants.backend.python.goals.setup_py.package_python_dist (testprojects/src/python/native:dist)
in pants.backend.python.goals.setup_py.run_setup_py
in pants.backend.python.util_rules.dists.run_pep517_build
in pants.engine.process.fallible_to_exec_result_or_raise
Traceback (most recent call last):
File "/Users/aadt/src/github/kaos/pants/src/python/pants/engine/process.py", line 270, in fallible_to_exec_result_or_raise
raise ProcessExecutionFailure(
pants.engine.process.ProcessExecutionFailure: Process 'Run setuptools.build_meta for testprojects/src/python/native:dist' failed with exit code 1.
stdout:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11.5-x86_64-3.8
creating build/lib.macosx-11.5-x86_64-3.8/native
copying ./setup.py -> build/lib.macosx-11.5-x86_64-3.8/native
copying ./name.py -> build/lib.macosx-11.5-x86_64-3.8/native
running build_ext
building 'native.impl' extension
creating build/temp.macosx-11.5-x86_64-3.8
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Users/aadt/.cache/pants/named_caches/pex_root/venvs/short/6dae86d7/include -I/Users/aadt/.pyenv/versions/3.8.11/include/python3.8 -c impl.c -o build/temp.macosx-11.5-x86_64-3.8/impl.o
stderr:
package init file './__init__.py' not found (or not a regular file)
error: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.16" but "11.5" during configure
Use --no-process-execution-local-cleanup to preserve process chroots for inspection.
Traceback (most recent call last):
File "/Users/aadt/src/github/kaos/pants/src/python/pants/bin/local_pants_runner.py", line 236, in _run_inner
return self._perform_run(goals)
File "/Users/aadt/src/github/kaos/pants/src/python/pants/bin/local_pants_runner.py", line 175, in _perform_run
return self._perform_run_body(goals, poll=False)
File "/Users/aadt/src/github/kaos/pants/src/python/pants/bin/local_pants_runner.py", line 192, in _perform_run_body
return self.graph_session.run_goal_rules(
File "/Users/aadt/src/github/kaos/pants/src/python/pants/init/engine_initializer.py", line 135, in run_goal_rules
exit_code = self.scheduler_session.run_goal_rule(
File "/Users/aadt/src/github/kaos/pants/src/python/pants/engine/internals/scheduler.py", line 544, in run_goal_rule
self._raise_on_error([t for _, t in throws])
File "/Users/aadt/src/github/kaos/pants/src/python/pants/engine/internals/scheduler.py", line 503, in _raise_on_error
raise ExecutionError(
pants.engine.internals.scheduler.ExecutionError: 1 Exception encountered:
Engine traceback:
in select
in pants.core.goals.package.package_asset
in pants.backend.python.goals.setup_py.package_python_dist (testprojects/src/python/native:dist)
in pants.backend.python.goals.setup_py.run_setup_py
in pants.backend.python.util_rules.dists.run_pep517_build
in pants.engine.process.fallible_to_exec_result_or_raise
Traceback (most recent call last):
File "/Users/aadt/src/github/kaos/pants/src/python/pants/engine/process.py", line 270, in fallible_to_exec_result_or_raise
raise ProcessExecutionFailure(
pants.engine.process.ProcessExecutionFailure: Process 'Run setuptools.build_meta for testprojects/src/python/native:dist' failed with exit code 1.
stdout:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11.5-x86_64-3.8
creating build/lib.macosx-11.5-x86_64-3.8/native
copying ./setup.py -> build/lib.macosx-11.5-x86_64-3.8/native
copying ./name.py -> build/lib.macosx-11.5-x86_64-3.8/native
running build_ext
building 'native.impl' extension
creating build/temp.macosx-11.5-x86_64-3.8
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/Users/aadt/.cache/pants/named_caches/pex_root/venvs/short/6dae86d7/include -I/Users/aadt/.pyenv/versions/3.8.11/include/python3.8 -c impl.c -o build/temp.macosx-11.5-x86_64-3.8/impl.o
stderr:
package init file './__init__.py' not found (or not a regular file)
error: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.16" but "11.5" during configure
Use --no-process-execution-local-cleanup to preserve process chroots for inspection.
(Use -ldebug for more logs. See <https://www.pantsbuild.org/v2.8/docs/troubleshooting> for common issues. Consider reaching out for help: <https://www.pantsbuild.org/v2.8/docs/getting-help.>)
12:38:07.57 [INFO] Canceled: Installing 3rdparty/python/lockfiles/user_reqs.txt
curved-television-6568
10/01/2021, 10:40 AM