8000 ENH: Enable musllinux wheels by tgross35 · Pull Request #21200 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: Enable musllinux wheels #21200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 12 commits into from
Closed
Prev Previous commit
Next Next commit
Merge branch 'upstream-main' into 20089-add-musl-wheels. Added output…
… to openblas
  • Loading branch information
tgross35 committed May 1, 2022
commit 0452c13463615843484edc4e2e0566f8f1812aa0
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ requires = [


[tool.cibuildwheel]
skip = "cp36-* cp37-* pp37-* pp38-macosx* *-manylinux_i686 *-musllinux_i686 *_ppc64le *_s390x"
skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux_i686"
build-verbosity = "3"
before-build = "bash {project}/tools/wheels/cibw_before_build.sh {project}"
before-test = "pip install -r {project}/test_requirements.txt"
Expand Down
15 changes: 9 additions & 6 deletions tools/openblas_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
import hashlib
import os
import platform
import sysconfig
import sys
import shutil
import sys
import sysconfig
import tarfile
import textwrap
import zipfile

from tempfile import mkstemp, gettempdir
from urllib.request import urlopen, Request
from tempfile import gettempdir, mkstemp
from urllib.error import HTTPError
from urllib.request import Request, urlopen

# 0.3.19 fails AVX512_SKX tests, issue 20654, comments in PR 20660
OPENBLAS_V = '0.3.19.dev'
Expand Down Expand Up @@ -66,6 +65,8 @@ def get_manylinux(arch):


def download_openblas(target, plat, ilp64):
print("BEGIN download_openblas OUTPUT")
print(f"platform: {plat}")
osname, arch = plat.split("-")
fnsuffix = {None: "", "64_": "64_"}[ilp64]
filename = ''
Expand Down Expand Up @@ -93,6 +94,7 @@ def download_openblas(target, plat, ilp64):
if not suffix:
return None
filename = f'{BASEURL}/openblas{fnsuffix}-{OPENBLAS_LONG}-{suffix}'
print(f"filename: {filename}")
req = Request(url=filename, headers=headers)
try:
response = urlopen(req)
Expand Down Expand Up @@ -297,9 +299,10 @@ def test_version(expected_version, ilp64=get_ilp64()):
Assert that expected OpenBLAS version is
actually available via NumPy
"""
import numpy
import ctypes

import numpy

dll = ctypes.CDLL(numpy.core._multiarray_umath.__file__)
if ilp64 == "64_":
get_config = dll.openblas_get_config64_
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0