Skip to content

Commit dba29ce

Browse files
authored
fix build wheel on PyPy 3.8 (#139)
1 parent 05dde9c commit dba29ce

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

libmc/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
__file__ as _libmc_so_file
3434
)
3535

36-
__VERSION__ = "1.4.9"
37-
__version__ = "1.4.9"
36+
__VERSION__ = "1.4.10"
37+
__version__ = "1.4.10"
3838
__author__ = "mckelvin"
3939
__email__ = "[email protected]"
4040
__date__ = "Fri Jun 7 06:16:00 2024 +0800"

setup.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,15 @@ def find_version(*file_paths):
9999
"License :: OSI Approved :: BSD License",
100100
"Topic :: Software Development :: Libraries",
101101
],
102-
# Support for the basestring type is new in Cython 0.20.
103-
setup_requires=["Cython >= 0.20"],
102+
setup_requires=[
103+
# Support for the basestring type is new in Cython 0.20.
104+
'Cython >= 0.20 ; implementation_name != "pypy"',
105+
'Cython >= 0.20 ; implementation_name == "pypy" and python_version > "3.8"',
106+
107+
# compile error in PyPy 3.8 with Cython 3.1.2
108+
# error: 'PyDescr_NewMember' was not declared in this scope
109+
'Cython >= 0.20, < 3.1; implementation_name == "pypy" and python_version <= "3.8"',
110+
],
104111
ext_modules=[
105112
Extension(
106113
"libmc._client",

src/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package golibmc
22

3-
const _Version = "1.4.9"
3+
const _Version = "1.4.10"
44
const _Author = "mckelvin"
55
const _Email = "[email protected]"
66
const _Date = "Fri Jun 7 06:16:00 2024 +0800"

0 commit comments

Comments
 (0)