Sorry for the multiple PRs. I thought the upgrade to Python 3.7 would be trivial but I was mistaken. Now that I finally tried testing autowrap with Python 3.7 I had to fix two issues:
As seen in the Python 3.7 changelog, _PyThreadState_Current is no longer available and trying to link to it fails.
The layout of PyDateTime_CAPI changed, leading to crashes.
With this PR, autowrap works correctly with Python 3.7 and all tests pass, including the ones involving dates and date times.
Sorry for the multiple PRs. I thought the upgrade to Python 3.7 would be trivial but I was mistaken. Now that I finally tried testing autowrap with Python 3.7 I had to fix two issues:
_PyThreadState_Current
is no longer available and trying to link to it fails.PyDateTime_CAPI
changed, leading to crashes.With this PR, autowrap works correctly with Python 3.7 and all tests pass, including the ones involving dates and date times.