Skip to content

Commit ed09666

Browse files
committed
Enable pypy for smoke again
1 parent 3a42e8f commit ed09666

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/smoke.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
matrix:
3737
config:
3838
- {os: ubuntu-24.04, python: "3.12", ffmpeg: "8.0.1", extras: true}
39-
# - {os: ubuntu-24.04, python: "pypy3.11", ffmpeg: "8.0.1"}
39+
- {os: ubuntu-24.04, python: "pypy3.11", ffmpeg: "8.0.1"}
4040
- {os: macos-14, python: "3.11", ffmpeg: "8.0.1"}
4141

4242
env:

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@
2424
if sys.implementation.name == "cpython":
2525
py_limited_api = True
2626
options = {"bdist_wheel": {"py_limited_api": "cp311"}}
27+
define_macros = [("Py_LIMITED_API", 0x030B0000)]
2728
else:
2829
py_limited_api = False
2930
options = {}
31+
define_macros = []
3032

3133
# Monkey-patch Cython to not overwrite embedded signatures.
3234
old_embed_signature = EmbedSignature._embed_signature
@@ -148,7 +150,7 @@ def parse_cflags(raw_flags):
148150
include_dirs=[f"{IMPORT_NAME}/filter"] + extension_extra["include_dirs"],
149151
libraries=extension_extra["libraries"],
150152
library_dirs=extension_extra["library_dirs"],
151-
define_macros=[("Py_LIMITED_API", 0x030B0000)],
153+
define_macros=define_macros,
152154
py_limited_api=py_limited_api,
153155
)
154156

@@ -194,7 +196,7 @@ def parse_cflags(raw_flags):
194196
libraries=extension_extra["libraries"],
195197
library_dirs=extension_extra["library_dirs"],
196198
sources=[pyx_path],
197-
define_macros=[("Py_LIMITED_API", 0x030B0000)],
199+
define_macros=define_macros,
198200
py_limited_api=py_limited_api,
199201
),
200202
compiler_directives=compiler_directives,

0 commit comments

Comments
 (0)