Skip to content

Commit 02e4142

Browse files
committed
fix 5
1 parent 19d40ca commit 02e4142

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

.github/workflows/build_wheels.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,10 @@ jobs:
3030
uses: pypa/cibuildwheel@v2.23.3
3131
env:
3232
# CGO_ENABLED: 1
33-
CIBW_BUILD: "cp3*_x86_64"
33+
CIBW_BUILD: "cp311*_x86_64"
3434
CIBW_ARCHS: "native"
3535
# For Linux, install Go once per container using CIBW_BEFORE_ALL.
3636
# This is more efficient than installing it for every Python version.
37-
# CIBW_BEFORE_ALL_LINUX: >
38-
# curl -sL https://go.dev/dl/go1.23.0.linux-amd64.tar.gz | tar -C /usr/local -xzf - &&
39-
# /usr/local/go/bin/go version &&
40-
# /usr/local/go/bin/go install github.com/go-python/gopy@latest &&
41-
# /usr/local/go/bin/go install golang.org/x/tools/cmd/goimports@latest
4237
CIBW_BEFORE_ALL_LINUX: >
4338
set -ex &&
4439
curl -sL https://go.dev/dl/go1.23.0.linux-amd64.tar.gz | tar -C /usr/local -xzf - &&
@@ -55,7 +50,7 @@ jobs:
5550
CIBW_BEFORE_BUILD: "pip install pybindgen setuptools wheel"
5651

5752
# Skip building for Python 3.7 and older, and all PyPy versions.
58-
CIBW_SKIP: "cp36-* cp37-* pp* *-i686"
53+
CIBW_SKIP: "cp36-* cp37-* cp38-* cp39-* cp310-* cp312-* cp313-* pp* *-i686"
5954

6055
- name: Store wheel artifacts
6156
uses: actions/upload-artifact@v4
@@ -71,11 +66,6 @@ jobs:
7166
steps:
7267
- uses: actions/checkout@v4
7368

74-
- name: Set up Python
75-
uses: actions/setup-python@v5
76-
with: # fix gcc cannot find -lpython3.11
77-
python-version: '3.11'
78-
7969
- name: Use custom setup.py
8070
shell: bash # Use bash for consistency across platforms
8171
run: cp python/setup_custom.py setup.py
@@ -88,9 +78,6 @@ jobs:
8878
with:
8979
platforms: all
9080

91-
- name: Install cibuildwheel # fix gcc cannot find -lpython3.11
92-
run: python -m pip install cibuildwheel
93-
9481
- name: Build wheels
9582
uses: pypa/cibuildwheel@v2.23.3
9683
env:

python/setup_custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def build_extension(self, ext: setuptools.Extension):
4747
"gopy",
4848
"build",
4949
"-no-make",
50-
# "-dynamic-link=True",
50+
"-dynamic-link=True",
5151
"-output",
5252
pkg_dir,
5353
"-name",

0 commit comments

Comments
 (0)