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

Python 3.9 #3611

Merged
merged 19 commits into from
Jul 16, 2021
Merged

Python 3.9 #3611

merged 19 commits into from
Jul 16, 2021

Conversation

ssheorey
Copy link
Member

@ssheorey ssheorey commented Jun 18, 2021

Python 3.9 support.
Tensorflow bump 2.4.1 -> 2.5.0.
PyTorch bump 1.7.1 -> 1.8.1 (LTS)

Trigger fatal error during build if user tries to build for PyTorch<1.8.0 with Python 3.9 due to
pytorch/pytorch#50014

Closes #3065

This change is Reviewable

ssheorey added 3 commits June 18, 2021 15:32
Including PyTorch Ops and TF ops
Upgrade pybind11 to v2.6.2 to fix issue with Python 3.9.0
Define __hash__ if __eq__ is defined and need storage in dict or set.
python tests pass
Remove redundant POSITION_INDEPENDENT_CODE (everything is PIC in Open3D now).
Submodules are shallow by default
Build 3.9 wheels in master
Install TF 2.5 for Python 3.9, else stay with 2.4.1
Temp switch from 3.6 -> 3.9 for testing, since only one Python version is used during PR CI
@update-docs
Copy link

update-docs bot commented Jun 18, 2021

Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes.

@ssheorey ssheorey marked this pull request as ready for review July 16, 2021 17:33
@ssheorey ssheorey requested review from benjaminum and yxlao July 16, 2021 17:33
Copy link
Contributor

@benjaminum benjaminum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 6 of 13 files at r2, 9 of 13 files at r3, 1 of 1 files at r4.
Reviewable status: 16 of 19 files reviewed, 1 unresolved discussion (waiting on @ssheorey and @yxlao)


CMakeLists.txt, line 513 at r4 (raw file):

# Convenience function to set important target properties
function(open3d_set_global_properties target)
    # Libraries need to be compiled with position independent code

This change does not seem to be related to python 3.9. Is setting PIC here superfluous?

Copy link
Member Author

@ssheorey ssheorey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 16 of 19 files reviewed, 1 unresolved discussion (waiting on @benjaminum and @yxlao)


CMakeLists.txt, line 513 at r4 (raw file):

Previously, benjaminum (Benjamin Ummenhofer) wrote…

This change does not seem to be related to python 3.9. Is setting PIC here superfluous?

Yes, it's set globally (as part of security settings) on line 288 for all targets.

Copy link
Contributor

@benjaminum benjaminum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 16 of 19 files reviewed, all discussions resolved (waiting on @yxlao)

@yxlao yxlao merged commit aec8035 into master Jul 16, 2021
@yxlao yxlao deleted the ssheorey/python-3.9 branch July 16, 2021 23:54
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.

PyPi has open3d 0.12 only for Python 3.8 and earlier, not for 3.9
3 participants