Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

switch distutils to sysconfig for get_platform() #2594

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

antirotor
Copy link
Member

Change

./tools/build_dependencies.py was using distutils.util.get_platform() to determine folder where openpype is built. As distutils are now deprecated, this is switching get_platform() to sysconfig module with similar functionality.

This is also fixing rare cases where platform was reported differently by distutils and sysconfig (win32 vs. win-amd64).

@antirotor antirotor added type: bug Something isn't working backend labels Jan 26, 2022
@antirotor antirotor self-assigned this Jan 26, 2022
Copy link
Collaborator

@BigRoy BigRoy left a comment

Choose a reason for hiding this comment

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

Same results for both on my end. Fine with me. ❤️

@antirotor antirotor merged commit 66db77e into develop Jan 27, 2022
@antirotor antirotor deleted the bugfix/switch-get-platform-to-sysconfig branch January 27, 2022 12:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants