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

Support for Python 3.8+ on Windows #1511

Merged

Conversation

rstelzleni
Copy link
Contributor

Description of Change(s)

Previously this had been disabled because of a change to how the python
interpreter searches for DLLs. This change should restore the old
behavior, and give software builders the ability to opt into the new
python behavior where possible. See

https://docs.python.org/3/whatsnew/3.8.html#bpo-36085-whatsnew

We've discussed a few approaches to this and went with this full path searching approach to try to be as close to the pre python 3.8 behavior as possible. You can disable it with an environment variable, which we'll make use of in the python pypi packages, since those are better off not searching the path.

Fixes Issue(s)

@jilliene
Copy link

jilliene commented May 6, 2021

Filed as internal issue #USD-6682

Copy link
Contributor

@sunyab sunyab left a comment

Choose a reason for hiding this comment

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

This looks great to me, just left a few cleanup-ish notes.

azure-pipelines.yml Outdated Show resolved Hide resolved
azure-pypi-pipeline.yml Outdated Show resolved Hide resolved
pxr/base/tf/__init__.py Outdated Show resolved Hide resolved
pxr/usdImaging/usdviewq/appController.py Outdated Show resolved Hide resolved
BUILDING.md Outdated Show resolved Hide resolved
@rstelzleni
Copy link
Contributor Author

I think I addressed all the review notes. Let me know if I missed anything.

Would you prefer I rebase this so it's just one change, or is it better to keep the commit history? Let me know which you'd prefer, then I'll rebase the two followup changes to pick this up, and to use the new env var name.

@sunyab
Copy link
Contributor

sunyab commented May 12, 2021

I'd lean towards rebasing it to just one change, thanks!

Previously this had been disabled because of a change to how the python
interpreter searches for DLLs. This change should restore the old
behavior, and give software builders the ability to opt into the new
python behavior where possible. See

https://docs.python.org/3/whatsnew/3.8.html#bpo-36085-whatsnew
@rstelzleni rstelzleni force-pushed the windows-py38-support branch from 04e6461 to 2a6c08f Compare May 13, 2021 00:19
@pixar-oss pixar-oss merged commit faaca8c into PixarAnimationStudios:dev May 17, 2021
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.

4 participants