Skip to content

Generate the TypeOffset class automatically.#161

Merged
tonyroberts merged 1 commit into
pythonnet:developfrom
tonyroberts:develop
Feb 23, 2016
Merged

Generate the TypeOffset class automatically.#161
tonyroberts merged 1 commit into
pythonnet:developfrom
tonyroberts:develop

Conversation

@tonyroberts
Copy link
Copy Markdown
Contributor

Rather than manually tweak the TypeOffset class for each Python release it's easier and more robust to generate it directly from the Python headers.

This will make the 3.5 upgrade significantly easier.

Rather than manually tweak the TypeOffset class for each Python
release it's easier and more robust to generate it directly
from the Python headers.
tonyroberts added a commit that referenced this pull request Feb 23, 2016
Generate the TypeOffset class automatically.
@tonyroberts tonyroberts merged commit e2dbb73 into pythonnet:develop Feb 23, 2016
@tonyroberts
Copy link
Copy Markdown
Contributor Author

@filmor ah ok, that makes sense. I had done it so it's conditionally included, but I see what you're saying - having to define yet another thing in visual studio could be nicely avoided as you suggest.

@tonyroberts
Copy link
Copy Markdown
Contributor Author

@filmor hmm the only downside to that is when building with different python configs (e.g. debug or whatever) the generated file names are different as they include the ABI flags... maybe a conditional include will still be needed for those, but for the most usual cases (i.e. the ones I checked in pre-generated files for) they can all be included and #if/defed out.

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