Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Cython 3 #183

Merged
merged 2 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cylp/cy/CyCbcModel.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ cdef extern from "CbcCompareUser.hpp":
cdef cppclass CppCbcCompareUser "CbcCompareUser":
pass
ctypedef int (*runTest_t)(void* instance, CppICbcNode* x,
CppICbcNode* y)
CppICbcNode* y) except? -1
ctypedef bint (*runNewSolution_t)(void*instance, CppICbcModel* model,
double objectiveAtContinuous,
int numberInfeasibilitiesAtContinuous)
int numberInfeasibilitiesAtContinuous) except? -1
ctypedef int (*runEvery1000Nodes_t)(void* instance,
CppICbcModel* model, int numberNodes)
CppICbcModel* model, int numberNodes) except? -1
bint equalityTest(CppICbcNode* x, CppICbcNode* y)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
requires = [
'setuptools',
'wheel',
'Cython < 3',
'Cython == 3.0.4',
# https://numpy.org/devdocs/user/depending_on_numpy.html#build-time-dependency
# from https://github.com/scipy/oldest-supported-numpy/pull/78#issuecomment-1747936818:
"oldest-supported-numpy; platform_python_implementation != 'PyPy'",
Expand Down
Loading