-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
Fix Python 3.4 cpp implementation #772
Conversation
Thanks for this! Looks like Travis is failing though? |
@haberman Ugh, sorry. I guessed that Python 3.4 would be installed on the Travis machines, but turns out I guessed wrong. Looks like everything is passing now that it's installed from the ppa. |
@haberman I just rebased this to pick up the latest upstream changes. After resolving conflicts it looks like everything is still passing. Let me know if any other work is needed prior to merging. |
@@ -113,12 +113,14 @@ build_javanano_oracle7() { | |||
|
|||
internal_install_python_deps() { | |||
sudo pip install tox | |||
# Only install Python2.6 on Linux. | |||
# Only install Python2.6/3.3 on Linux. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3.x?
Besides that one comment change, looks good to me. Thanks! |
Fixes the ScalarMapContainer/MessageMapContainer implementations on Python 3.4, by dynamically allocating their PyTypeObjects using PyType_FromSpecWithBases, instead of statically allocating them. This is necessary because Python 3.4+ disallows statically allocating a class with a dynamically allocated parent. Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
@haberman Should be good now. |
Fix Python 3.4 cpp implementation
Thanks! |
Fixes the ScalarMapContainer/MessageMapContainer implementations on
Python 3.4, by dynamically allocating their PyTypeObjects using
PyType_FromSpecWithBases, instead of statically allocating them. This is
necessary because Python 3.4+ disallows statically allocating a class
with a dynamically allocated parent.
Signed-off-by: Dan O'Reilly oreilldf@gmail.com