8000 Generate the TypeOffset class automatically. by tonyroberts · Pull Request #161 · pythonnet/pythonnet · GitHub
[go: up one dir, main page]

Skip to content

Generate the TypeOffset class automatically. #161

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

Merged
merged 1 commit into from
Feb 23, 2016

Conversation

tonyroberts
Copy link
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
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
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
0