Skip to content

Commit

Permalink
temporary workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Sep 1, 2021
1 parent dd02214 commit be88b34
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 41 deletions.
10 changes: 5 additions & 5 deletions bin/update_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ class Image(NamedTuple):
Image("manylinux_2_24", "pypy_i686", "quay.io/pypa/manylinux_2_24_i686", None),
Image("manylinux_2_24", "pypy_aarch64", "quay.io/pypa/manylinux_2_24_aarch64", None),
# musllinux_1_1 images
Image("musllinux_1_1", "x86_64", "quay.io/pypa/musllinux_1_1_x86_64", None),
Image("musllinux_1_1", "i686", "quay.io/pypa/musllinux_1_1_i686", None),
Image("musllinux_1_1", "aarch64", "quay.io/pypa/musllinux_1_1_aarch64", None),
Image("musllinux_1_1", "ppc64le", "quay.io/pypa/musllinux_1_1_ppc64le", None),
Image("musllinux_1_1", "s390x", "quay.io/pypa/musllinux_1_1_s390x", None),
Image("musllinux_1_1", "x86_64", "mayeut/manylinux", "musllinux_1_1_x86_64"),
Image("musllinux_1_1", "i686", "mayeut/manylinux", "musllinux_1_1_i686"),
# Image("musllinux_1_1", "aarch64", "quay.io/pypa/musllinux_1_1_aarch64", None),
# Image("musllinux_1_1", "ppc64le", "quay.io/pypa/musllinux_1_1_ppc64le", None),
# Image("musllinux_1_1", "s390x", "quay.io/pypa/musllinux_1_1_s390x", None),
]

config = configparser.ConfigParser()
Expand Down
6 changes: 3 additions & 3 deletions cibuildwheel/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
MUSLLINUX_ARCHS = (
"x86_64",
"i686",
"aarch64",
"ppc64le",
"s390x",
# "aarch64",
# "ppc64le",
# "s390x",
)


Expand Down
6 changes: 3 additions & 3 deletions cibuildwheel/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def build(options: BuildOptions) -> None:
("pp", "manylinux_i686", options.manylinux_images["pypy_i686"]),
("cp", "musllinux_x86_64", options.musllinux_images["x86_64"]),
("cp", "musllinux_i686", options.musllinux_images["i686"]),
("cp", "musllinux_aarch64", options.musllinux_images["aarch64"]),
("cp", "musllinux_ppc64le", options.musllinux_images["ppc64le"]),
("cp", "musllinux_s390x", options.musllinux_images["s390x"]),
# ("cp", "musllinux_aarch64", options.musllinux_images["aarch64"]),
# ("cp", "musllinux_ppc64le", options.musllinux_images["ppc64le"]),
# ("cp", "musllinux_s390x", options.musllinux_images["s390x"]),
]

cwd = Path.cwd()
Expand Down
30 changes: 15 additions & 15 deletions cibuildwheel/resources/build-platforms.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ python_configurations = [
{ identifier = "cp38-musllinux_i686", version = "3.8", path_str = "/opt/python/cp38-cp38" },
{ identifier = "cp39-musllinux_i686", version = "3.9", path_str = "/opt/python/cp39-cp39" },
{ identifier = "cp310-musllinux_i686", version = "3.10", path_str = "/opt/python/cp310-cp310" },
{ identifier = "cp36-musllinux_aarch64", version = "3.6", path_str = "/opt/python/cp36-cp36m" },
{ identifier = "cp37-musllinux_aarch64", version = "3.7", path_str = "/opt/python/cp37-cp37m" },
{ identifier = "cp38-musllinux_aarch64", version = "3.8", path_str = "/opt/python/cp38-cp38" },
{ identifier = "cp39-musllinux_aarch64", version = "3.9", path_str = "/opt/python/cp39-cp39" },
{ identifier = "cp310-musllinux_aarch64", version = "3.10", path_str = "/opt/python/cp310-cp310" },
{ identifier = "cp36-musllinux_ppc64le", version = "3.6", path_str = "/opt/python/cp36-cp36m" },
{ identifier = "cp37-musllinux_ppc64le", version = "3.7", path_str = "/opt/python/cp37-cp37m" },
{ identifier = "cp38-musllinux_ppc64le", version = "3.8", path_str = "/opt/python/cp38-cp38" },
{ identifier = "cp39-musllinux_ppc64le", version = "3.9", path_str = "/opt/python/cp39-cp39" },
{ identifier = "cp310-musllinux_ppc64le", version = "3.10", path_str = "/opt/python/cp310-cp310" },
{ identifier = "cp36-musllinux_s390x", version = "3.6", path_str = "/opt/python/cp36-cp36m" },
{ identifier = "cp37-musllinux_s390x", version = "3.7", path_str = "/opt/python/cp37-cp37m" },
{ identifier = "cp38-musllinux_s390x", version = "3.8", path_str = "/opt/python/cp38-cp38" },
{ identifier = "cp39-musllinux_s390x", version = "3.9", path_str = "/opt/python/cp39-cp39" },
{ identifier = "cp310-musllinux_s390x", version = "3.10", path_str = "/opt/python/cp310-cp310" },
# { identifier = "cp36-musllinux_aarch64", version = "3.6", path_str = "/opt/python/cp36-cp36m" },
# { identifier = "cp37-musllinux_aarch64", version = "3.7", path_str = "/opt/python/cp37-cp37m" },
# { identifier = "cp38-musllinux_aarch64", version = "3.8", path_str = "/opt/python/cp38-cp38" },
# { identifier = "cp39-musllinux_aarch64", version = "3.9", path_str = "/opt/python/cp39-cp39" },
# { identifier = "cp310-musllinux_aarch64", version = "3.10", path_str = "/opt/python/cp310-cp310" },
# { identifier = "cp36-musllinux_ppc64le", version = "3.6", path_str = "/opt/python/cp36-cp36m" },
# { identifier = "cp37-musllinux_ppc64le", version = "3.7", path_str = "/opt/python/cp37-cp37m" },
# { identifier = "cp38-musllinux_ppc64le", version = "3.8", path_str = "/opt/python/cp38-cp38" },
# { identifier = "cp39-musllinux_ppc64le", version = "3.9", path_str = "/opt/python/cp39-cp39" },
# { identifier = "cp310-musllinux_ppc64le", version = "3.10", path_str = "/opt/python/cp310-cp310" },
# { identifier = "cp36-musllinux_s390x", version = "3.6", path_str = "/opt/python/cp36-cp36m" },
# { identifier = "cp37-musllinux_s390x", version = "3.7", path_str = "/opt/python/cp37-cp37m" },
# { identifier = "cp38-musllinux_s390x", version = "3.8", path_str = "/opt/python/cp38-cp38" },
# { identifier = "cp39-musllinux_s390x", version = "3.9", path_str = "/opt/python/cp39-cp39" },
# { identifier = "cp310-musllinux_s390x", version = "3.10", path_str = "/opt/python/cp310-cp310" },
]

[macos]
Expand Down
6 changes: 3 additions & 3 deletions cibuildwheel/resources/defaults.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ manylinux-pypy_aarch64-image = "manylinux2014"

musllinux-x86_64-image = "musllinux_1_1"
musllinux-i686-image = "musllinux_1_1"
musllinux-aarch64-image = "musllinux_1_1"
musllinux-ppc64le-image = "musllinux_1_1"
musllinux-s390x-image = "musllinux_1_1"
# musllinux-aarch64-image = "musllinux_1_1"
# musllinux-ppc64le-image = "musllinux_1_1"
# musllinux-s390x-image = "musllinux_1_1"


[tool.cibuildwheel.linux]
Expand Down
2 changes: 2 additions & 0 deletions cibuildwheel/resources/pinned_docker_images.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ manylinux1 = quay.io/pypa/manylinux1_x86_64:2021-08-31-156bbc6
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2021-08-31-6f90a75
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2021-08-31-6f90a75
manylinux_2_24 = quay.io/pypa/manylinux_2_24_x86_64:2021-08-31-6f90a75
musllinux_1_1 = mayeut/manylinux:musllinux_1_1_x86_64

[i686]
manylinux1 = quay.io/pypa/manylinux1_i686:2021-08-31-156bbc6
manylinux2010 = quay.io/pypa/manylinux2010_i686:2021-08-31-6f90a75
manylinux2014 = quay.io/pypa/manylinux2014_i686:2021-08-31-6f90a75
manylinux_2_24 = quay.io/pypa/manylinux_2_24_i686:2021-08-31-6f90a75
musllinux_1_1 = mayeut/manylinux:musllinux_1_1_i686

[pypy_x86_64]
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2021-08-31-6f90a75
Expand Down
28 changes: 16 additions & 12 deletions test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,22 +151,26 @@ def expected_wheels(

if machine_arch == "x86_64":
architectures.append("i686")
if len(musllinux_versions) > 0 and not python_abi_tag.startswith("pp"):
platform_tags.extend(
[
".".join(
f"{musllinux_version}_{architecture}"
for musllinux_version in musllinux_versions
)
for architecture in architectures
]
)

platform_tags = [
".".join(
f"{manylinux_version}_{architecture}"
for manylinux_version in manylinux_versions
)
for architecture in architectures
]
if not python_abi_tag.startswith("pp"):
platform_tags.extend([
platform_tags.extend(
[
".".join(
f"{musllinux_version}_{architecture}"
for musllinux_version in musllinux_versions
f"{manylinux_version}_{architecture}"
for manylinux_version in manylinux_versions
)
for architecture in architectures
])
]
)

elif platform == "windows":
if python_abi_tag.startswith("cp"):
Expand Down
2 changes: 2 additions & 0 deletions unit_test/build_ids_test.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import pytest
import toml
from packaging.version import Version

from cibuildwheel.extra import InlineArrayDictEncoder # noqa: E402
from cibuildwheel.util import resources_dir


@pytest.mark.skip(reason="workaround for PEP656")
def test_compare_configs():
with open(resources_dir / "build-platforms.toml") as f:
txt = f.read()
Expand Down

0 comments on commit be88b34

Please sign in to comment.