You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ bazel build --config=remote //services/cicdtools/src/python/app:github
INFO: Invocation ID: 1b4960f0-e1e3-403c-ba1f-f9f3512c72df
INFO: Streaming build results to: https://xxxxxxxxx.buildbuddy.io/invocation/1b4960f0-e1e3-403c-ba1f-xxx
WARNING: Build options --host_platform, --java_language_version, --java_runtime_version, and 3 more have changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed).
WARNING: --remote_upload_local_results is set, but the remote cache does not support uploading action results or the current account is not authorized to write local results to the remote cache.
INFO: Analyzed target //services/cicdtools/src/python/app:github (14 packages loaded, 7596 targets configured).
ERROR: /home/dev/.cache/bazel/_bazel_dev/155bb1574771dc607335fbe8110386b4/external/rules_pycross~~lock_repos~pip/_lock/BUILD.bazel:5:8: Building cffi-1.17.1.tar.gz failed: (Exit 1): wheel_builder failed: error executing WheelBuild command (from target @@rules_pycross~~lock_repos~pip//_lock:[email protected]) bazel-out/aarch64-opt-exec-ST-3b7d3a520a33/bin/external/rules_pycross~/pycross/private/tools/wheel_builder --sdist ... (remaining 15 arguments skipped)
/buildbuddy-execroot/bazel-out/aarch64-opt-exec-ST-3b7d3a520a33/bin/external/rules_pycross~/pycross/private/tools/wheel_builder.runfiles/_main/../rules_pycross~/pycross/private/tools/wheel_builder.py:394: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
f.extractall(sdist_dir)
Traceback (most recent call last):
File "/buildbuddy-execroot/bazel-out/aarch64-opt-exec-ST-3b7d3a520a33/bin/external/rules_pycross~/pycross/private/tools/wheel_builder.runfiles/_main/../rules_pycross~/pycross/private/tools/wheel_builder.py", line 668, in build_wheel
wheel_file = builder.build(
^^^^^^^^^^^^^^
File "/buildbuddy-execroot/bazel-out/aarch64-opt-exec-ST-3b7d3a520a33/bin/external/rules_pycross~/pycross/private/tools/wheel_builder.runfiles/rules_pycross~~pycross~rules_pycross_internal/deps/[email protected]/site-packages/build/__init__.py", line 298, in build
return self._call_backend(f'build_{distribution}', output_directory, config_settings, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildbuddy-execroot/bazel-out/aarch64-opt-exec-ST-3b7d3a520a33/bin/external/rules_pycross~/pycross/private/tools/wheel_builder.runfiles/rules_pycross~~pycross~rules_pycross_internal/deps/[email protected]/site-packages/build/__init__.py", line 344, in _call_backend
with self._handle_backend(hook_name):
File "/buildbuddy-execroot/bazel-out/aarch64-opt-exec-ST-3b7d3a520a33/bin/external/rules_pycross~/pycross/private/tools/wheel_builder.runfiles/rules_python~~python~python_3_12_x86_64-unknown-linux-gnu/lib/python3.12/contextlib.py", line 158, in __exit__
self.gen.throw(value)
File "/buildbuddy-execroot/bazel-out/aarch64-opt-exec-ST-3b7d3a520a33/bin/external/rules_pycross~/pycross/private/tools/wheel_builder.runfiles/rules_pycross~~pycross~rules_pycross_internal/deps/[email protected]/site-packages/build/__init__.py", line 354, in _handle_backend
raise BuildBackendException(
build._exceptions.BuildBackendException: Backend 'setuptools.build_meta' is not available.
ERROR Backend 'setuptools.build_meta' is not available.
Target //services/cicdtools/src/python/app:github failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /home/dev/.cache/bazel/_bazel_dev/155bb1574771dc607335fbe8110386b4/external/rules_pycross~~lock_repos~pip/_lock/BUILD.bazel:5:8 Installing cffi-1.17.1.whl failed: (Exit 1): wheel_builder failed: error executing WheelBuild command (from target @@rules_pycross~~lock_repos~pip//_lock:[email protected]) bazel-out/aarch64-opt-exec-ST-3b7d3a520a33/bin/external/rules_pycross~/pycross/private/tools/wheel_builder --sdist ... (remaining 15 arguments skipped)
INFO: Elapsed time: 4.747s, Critical Path: 3.34s
INFO: 2 processes: 2 internal.
ERROR: Build did NOT complete successfully
INFO: Streaming build results to: https://xxxxxxxxx.buildbuddy.io/invocation/1b4960f0-e1e3-403c-ba1f-xxx
# Helps us do cross platform builds for Python
bazel_dep(name = "rules_pycross", version = "0.6.1")
environments = use_extension("@rules_pycross//pycross/extensions:environments.bzl", "environments")
environments.create_for_python_toolchains(
name = "supported_environments",
platforms = [
"aarch64-unknown-linux-gnu",
"x86_64-unknown-linux-gnu",
],
python_versions = [
PYTHON_VERSION,
],
)
use_repo(environments, "supported_environments")
use_repo(environments, "pycross_environments")
# Use the lock_import extension to import external lock files.
lock_import = use_extension("@rules_pycross//pycross/extensions:lock_import.bzl", "lock_import")
# Import from PDM
lock_import.import_pdm(
lock_file = "//libraries/python/third_party:pdm.lock",
project_file = "//libraries/python/third_party:pyproject.toml",
repo = "pip",
target_environments = [
"@supported_environments//:environments",
],
)
# Specify per-package overrides. Here we say that we want to build ipython from an sdist.
lock_import.package(
name = "pyyaml",
always_build = True,
build_dependencies = [
"setuptools",
"wheel",
],
repo = "pip",
)
lock_import.package(
name = "markupsafe",
# always_build = True,
build_dependencies = [
"setuptools",
"wheel",
],
repo = "pip",
)
# The actual repos are loaded from the lock_repos extension.
lock_repos = use_extension("@rules_pycross//pycross/extensions:lock_repos.bzl", "lock_repos")
use_repo(lock_repos, "pip")
Been trying everything I can think of but this just does not want to work. I think I had this working when I was experimenting with the poetry integration, but PDM seems like a better tool and I'd love to be able to get this to work.
This all stems from my attempt to try to use the pypi library called pyjwt.
The text was updated successfully, but these errors were encountered:
It looks like this is failing to build cffi from source, and you don't have setuptools specified as a build dependency for that package.
Instead of specifying dependencies per package, try setting default build dependencies for the whole lock file, which is a relatively new feature. See here for an example.
I'm not sure what I'm doing wrong, but pycross+PDM is proving to be extremely challenging when I use buildbuddy.
When I do a local build like this:
things work.
When I do a remote buildbuddy execution, it fails:
Here's the
myproject.toml
:in my
MODULE.bazel
:Been trying everything I can think of but this just does not want to work. I think I had this working when I was experimenting with the poetry integration, but PDM seems like a better tool and I'd love to be able to get this to work.
This all stems from my attempt to try to use the pypi library called
pyjwt
.The text was updated successfully, but these errors were encountered: