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

IECoreBinding : Use Py_ssize_t #1411

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Conversation

ericmehl
Copy link
Collaborator

MSVC has SSIZE_T, but not ssize_t, which is not part of the standard it seems. Python's pyport.h file does a typedef for it (typedef ssize_t Py_ssize_t), but something must have changed between Python 3.7 and 3.10 that causes that to not be included from what we're using. It does seem that the official recommendation is to use Py_ssize_t now.

This is needed for building Cortex with Python 3.10 dependencies packages.

Checklist

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable.
  • I have tested my change(s) in the test suite, and added new test cases where necessary.
  • My code follows the Cortex project's prevailing coding style and conventions.

MSVC has `SSIZE_T`, but not `ssize_t`, which is not part of the standard
it seems. Python's `pyport.h` file does a `typedef` for it, but
something must have changed between Python `3.7` and `3.10` that causes
that to not be included from what we're using. It does seem that the
official recommendation is to use `Py_ssize_t` now.
@johnhaddon johnhaddon changed the base branch from main to RB-10.5 April 24, 2024 13:47
@johnhaddon johnhaddon merged commit f8d3b66 into ImageEngine:RB-10.5 Apr 24, 2024
4 checks passed
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