summaryrefslogtreecommitdiff
path: root/testing/support.py
diff options
context:
space:
mode:
authorMatt Davis <mrd@redhat.com>2022-06-29 14:14:10 -0700
committerMatt Davis <mrd@redhat.com>2022-06-29 14:14:10 -0700
commiteaa9538f4130d7953297e1926ec4c08bd6c8d9f0 (patch)
tree1cb58cb08e8ecf0dfcb8f59ff8ac63a6df6f7c8d /testing/support.py
parentddd56a92609eacd598cde41e4244b08722f01730 (diff)
downloadcffi-eaa9538f4130d7953297e1926ec4c08bd6c8d9f0.tar.gz
musllinux test updates and wheels, py3.11 beta wheels
Diffstat (limited to 'testing/support.py')
-rw-r--r--testing/support.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/support.py b/testing/support.py
index 6339a94..a65375e 100644
--- a/testing/support.py
+++ b/testing/support.py
@@ -117,3 +117,12 @@ else:
extra_compile_args = ['-Werror', '-Wall', '-Wextra', '-Wconversion',
'-Wno-unused-parameter',
'-Wno-unreachable-code']
+
+is_musl = False
+if sys.platform == 'linux':
+ try:
+ from packaging.tags import platform_tags
+ is_musl = any(t.startswith('musllinux') for t in platform_tags())
+ del platform_tags
+ except ImportError:
+ pass