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

Enable Python 3.11 builds with Boost 1.82 #2742

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions build_scripts/build_usd.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ def InstallZlib(context, force, buildArgs):
def InstallBoost_Helper(context, force, buildArgs):
# In general we use boost 1.76.0 to adhere to VFX Reference Platform CY2022.
# However, there are some cases where a newer version is required.
# - Building with Python 3.10 requires boost 1.76.0 or newer.
# - Building with Python 3.10 requires boost 1.76.0 or newer, while 3.11 requires 1.82.
# (https://github.com/boostorg/python/commit/cbd2d9)
# XXX: Due to a typo we've been using 1.78.0 in this case for a while.
# We're leaving it that way to minimize potential disruption.
Expand All @@ -727,7 +727,9 @@ def InstallBoost_Helper(context, force, buildArgs):
# compatibility issues on Big Sur and Monterey.
pyInfo = GetPythonInfo(context)
pyVer = (int(pyInfo[3].split('.')[0]), int(pyInfo[3].split('.')[1]))
if context.buildPython and pyVer >= (3, 10):
if context.buildPython and pyVer >= (3, 11):
BOOST_URL = "https://boostorg.jfrog.io/artifactory/main/release/1.82.0/source/boost_1_82_0.zip"
elif context.buildPython and pyVer >= (3, 10):
BOOST_URL = "https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.zip"
elif IsVisualStudio2022OrGreater():
BOOST_URL = "https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.zip"
Expand Down