Skip to content

Commit 7ce8e6d

Browse files
fix: cython setup
1 parent 11b9653 commit 7ce8e6d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "Cython>=0.29.30"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["setuptools", "wheel", "Cython"]

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from setuptools import find_packages, setup
2-
from Cython.Build import cythonize
1+
from setuptools import Extension, find_packages, setup
2+
from Cython.Build import cythonize, build_ext
33

44
with open("README.md", 'r') as f:
55
long_description = f.read()
@@ -22,7 +22,8 @@
2222
"einops>=0.4",
2323
"einops-exts>=0.0.3"
2424
],
25-
ext_modules=cythonize(["./aligner_pytorch/*.pyx"]),
25+
extensions=[Extension("*", ["*.pyx"])],
26+
cmdclass={'build_ext': build_ext},
2627
classifiers=[
2728
"Development Status :: 4 - Beta",
2829
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)