Skip to content

Conversation

@tqchen
Copy link
Member

@tqchen tqchen commented Feb 10, 2025

Historically we have been maintaining cython and ctypes for FFI. One reason was cython was not that available in all platforms then. Cython have quite good availability now and also enjoys great perf benefit. This PR changes the CMake to make cython as required dependency of the python package and build cython by default. It also removes ctypes testcases in favor of all cython tests.

If things go well, we can consider remove ctypes and focus on cython support onward.

@tqchen
Copy link
Member Author

tqchen commented Feb 10, 2025

tested on windows, which is a particular platform to watch out for

Historically we have been maintaining cython and ctypes for FFI.
One reason was cython was not that available then.
Cython have quite good availability now and also enjoys great
perf benefit. This PR changes the CMake to make cython as required
dependency of the python package and build cython by default.
It also removes ctypes testcases in favor of all cython tests.

If things go well, we can consider remove ctypes and focus on
cython support onward.
@spectrometerHBH spectrometerHBH merged commit 2cbd35d into apache:main Feb 12, 2025
15 checks passed
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
Historically we have been maintaining cython and ctypes for FFI.
One reason was cython was not that available then.
Cython have quite good availability now and also enjoys great
perf benefit. This PR changes the CMake to make cython as required
dependency of the python package and build cython by default.
It also removes ctypes testcases in favor of all cython tests.

If things go well, we can consider remove ctypes and focus on
cython support onward.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants