Skip to content

Python support on s390x #1625

@iii-i

Description

@iii-i

Hello,

What would it take to build distroless python images for s390x?

I tried a very naive diff:

--- a/python3/BUILD
+++ b/python3/BUILD
@@ -1,7 +1,7 @@
 load("@container_structure_test//:defs.bzl", "container_structure_test")
 load("@rules_oci//oci:defs.bzl", "oci_image", "oci_image_index")
 load("@rules_pkg//:pkg.bzl", "pkg_tar")
-load("//:checksums.bzl", ARCHITECTURES = "BASE_ARCHITECTURES")
+load("//:checksums.bzl", "ARCHITECTURES")
 load("//private/util:deb.bzl", "deb")
 
 package(default_visibility = ["//visibility:public"])

and immediately ran into a problem with a missing toolchain:

$ bazel build //python3:python3_root_s390x_debian12
ERROR: /home/iii/distroless/python3/BUILD:50:14: While resolving toolchains for target //python3:python3_root_s390x_debian12: No matching toolchains found for types @aspect_bazel_lib//lib:jq_toolchain_type.

Not being a bazel expert, I can't tell whether this is easily resolvable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions