8000 CI: musllinux_x86_64 by andyfaff · Pull Request #22864 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

CI: musllinux_x86_64 #22864

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

Merged
merged 11 commits into from
Jan 20, 2023
Merged
Prev Previous commit
Next Next commit
BUG: np.testing.IS_MUSL
  • Loading branch information
andyfaff committed Jan 19, 2023
commit cad2d2648bbf25f0896c5adddab25a4c2c394bd3
4 changes: 3 additions & 1 deletion numpy/testing/_private/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ class KnownFailureException(Exception):
IS_MUSL = True
except ImportError:
# fallback to sysconfig (might be flaky)
if 'musl' in sysconfig.get_config_var('HOST_GNU_TYPE'):
# key could be missing or value could be None.
v = sysconfig.get_config_var('HOST_GNU_TYPE', '') or ''
if 'musl' in v:
IS_MUSL = True


Expand Down
4 changes: 3 additions & 1 deletion tools/openblas_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def get_linux(arch):
except ImportError:
# fallback to sysconfig for figuring out if you're using musl
plat = 'manylinux'
if 'musl' in sysconfig.get_config_var('HOST_GNU_TYPE'):
# key could be missing or value could be None
v = sysconfig.get_config_var('HOST_GNU_TYPE', '') or ''
if 'musl' in v:
plat = 'musllinux'

if 'manylinux' in plat:
Expand Down
0