Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c01605

Browse files
remove Cython version check, fixes python-llfuse#81
distutils Version classes are deprecated. I decided to remove the Cython version check completely, it is not as simple as checking a minimum version anyway. E.g. we can work with Cython 0.29.x and also 3.0.0b2, but earlier 3.0.0 releases are of unknown compatibility. Also, latest Python 3.12-dev versions require 0.29.34, while older Pythons are happy with stuff compiled by earlier 0.29.x releases.
1 parent 95e451a commit 8c01605

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,4 @@ jobs:
4646
run: pip install "Cython==3.0.0b2"
4747

4848
- name: Test
49-
run: |
50-
cython --version
51-
test/ci-test.sh
49+
run: test/ci-test.sh

setup.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535
import setuptools
3636
from setuptools import Extension
37-
from distutils.version import LooseVersion
3837

3938
basedir = os.path.abspath(os.path.dirname(__file__))
4039
sys.path.insert(0, os.path.join(basedir, 'util'))
@@ -218,11 +217,7 @@ def run(self):
218217
stderr=subprocess.STDOUT)
219218
except OSError:
220219
raise SystemExit('Cython needs to be installed for this command')
221-
222-
hit = re.match('^Cython version (.+)$', version)
223-
if not hit or LooseVersion(hit.group(1)) < "0.29":
224-
# in fact, we need a very recent Cython version to support the latest pythons
225-
raise SystemExit('Need Cython 0.29 or newer, found ' + version)
220+
print(f"Using {version.strip()}.")
226221

227222
cmd = ['cython', '-Wextra', '--force', '-3', '--fast-fail',
228223
'--directive', 'embedsignature=True', '--include-dir',

0 commit comments

Comments
 (0)