mechmotum / cyipopt

Cython interface for the interior point optimzer IPOPT
Eclipse Public License 2.0
227 stars 54 forks source link

Use Cython <3 legacy behavior. #213

Closed moorepants closed 9 months ago

moorepants commented 1 year ago

Cython 3 causes build errors due to the new requirement of the noexcept clause. The language_level compiler directive is also set to Python 3 by default. This commit restores the legacy behavior so the builds work with Cython <3 and >=3. We will need to make proper fixes, as Cython will probably drop the legacy functionality at some point.

moorepants commented 1 year ago

This is a bit better temporary fix than #212.

moorepants commented 1 year ago

Interestingly, this causes segmentation faults when running the tests.