File tree 3 files changed +13
-6
lines changed
3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 38
38
- " ubuntu-22.04"
39
39
- " windows-2022"
40
40
wheel-selector :
41
- - " cp38-*"
42
41
- " cp39-*"
43
42
- " cp310-*"
44
43
- " cp311-*"
57
56
fetch-depth : 0
58
57
59
58
- name : Build wheels
60
- uses : pypa/cibuildwheel@v2.20.0
59
+ uses : pypa/cibuildwheel@v2.21.3
61
60
with :
62
61
output-dir : wheelhouse
63
62
env :
71
70
CIBW_ARCHS_MACOS : " x86_64 universal2 arm64"
72
71
# Skip testing arm64 builds on Intel Macs.
73
72
CIBW_TEST_SKIP : " *-macosx_arm64 *-macosx_universal2:arm64"
73
+ # Use newer manylinux so we get newer gcc and can take advantage of
74
+ # speed boost from x86-64-v2, at the cost of not supporting some old
75
+ # patch releases of Python 3.9 if they haven't updated pip in their
76
+ # virtualenv.
77
+ CIBW_MANYLINUX_X86_64_IMAGE : " manylinux_2_28"
74
78
- uses : actions/upload-artifact@v3
75
79
name : Upload artifacts
76
80
with :
Original file line number Diff line number Diff line change @@ -21,13 +21,11 @@ jobs:
21
21
- " ubuntu-22.04"
22
22
- " windows-2022"
23
23
python-version :
24
- - " 3.8"
25
24
- " 3.9"
26
25
- " 3.10"
27
26
- " 3.11"
28
27
- " 3.12"
29
- - " 3.13-dev"
30
- - " pypy-3.8"
28
+ - " 3.13"
31
29
- " pypy-3.9"
32
30
- " pypy-3.10"
33
31
Original file line number Diff line number Diff line change 1
1
from setuptools import setup
2
2
from setuptools .extension import Extension
3
3
4
+ import platform
4
5
import sys
5
- import os
6
6
import versioneer
7
7
8
8
DEBUGMODE = False
24
24
break
25
25
26
26
extra_compile_args .append ("-std=c99" )
27
+ if platform .machine () == "x86_64" and platform .system ().lower ().startswith ("linux" ):
28
+ # Only support CPUs starting from 2008/2009 or so, and run twice as fast as
29
+ # a result! This requires sufficiently new gcc, 11 maybe?
30
+ extra_compile_args .append ("-march=x86-64-v2" )
31
+
27
32
if DEBUGMODE :
28
33
extra_compile_args .append ("-O0" )
29
34
extra_compile_args .append ("-g" )
You can’t perform that action at this time.
0 commit comments