File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
v0.7.2 (unreleased):
2
2
3
- - ...
3
+ - Fix building on non-CPython implementations like PyPy. (#341)
4
4
5
5
v0.7.1 (released June 30, 2025):
6
6
Original file line number Diff line number Diff line change 7
7
Unreleased
8
8
(`changes <https://github.com/earwig/mwparserfromhell/compare/v0.7.1...main >`__):
9
9
10
- - ...
10
+ - Fix building on non-CPython implementations like PyPy.
11
+ (`#341 <https://github.com/earwig/mwparserfromhell/issues/341 >`_)
11
12
12
13
v0.7.1
13
14
------
Original file line number Diff line number Diff line change 24
24
25
25
import glob
26
26
import os
27
+ import platform
27
28
import sys
28
29
from enum import Enum
29
30
@@ -63,8 +64,10 @@ class UseExtension(Enum):
63
64
f"Unknown value for $WITHOUT_EXTENSION; should be '1', or '0', "
64
65
f"but found { value !r} "
65
66
)
66
- else :
67
+ elif platform . python_implementation () == "CPython" :
67
68
use_extension = UseExtension .REQUIRED
69
+ else :
70
+ use_extension = UseExtension .IGNORED
68
71
69
72
if use_extension == UseExtension .IGNORED :
70
73
ext_modules = []
You can’t perform that action at this time.
0 commit comments