Skip to content

Commit

Permalink
Merge pull request #1512 from rstelzleni/pypi-py38-packages
Browse files Browse the repository at this point in the history
Enable building PyPI packages for Python 3.8

(Internal change: 2167160)
  • Loading branch information
pixar-oss committed May 14, 2021
2 parents b3e094b + 7e50d92 commit 8d107af
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions azure-pypi-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ stages:
Python37:
PYTHON_INTERPRETER: /opt/python/cp37-cp37m/bin/python
PYTHON_TAG: cp37
Python38:
PYTHON_INTERPRETER: /opt/python/cp38-cp38/bin/python
PYTHON_TAG: cp38
timeoutInMinutes: 90
pool:
vmImage: Ubuntu-18.04
Expand Down Expand Up @@ -74,6 +77,9 @@ stages:
Python37:
PYTHON_VERSION_SPEC: 3.7
PYTHON_TAG: cp37
Python38:
PYTHON_VERSION_SPEC: 3.8
PYTHON_TAG: cp38
timeoutInMinutes: 90
pool:
vmImage: 'VS2017-Win2016'
Expand Down Expand Up @@ -121,6 +127,10 @@ stages:
PYTHON_VERSION_SPEC: 3.7
PYTHON_INTERPRETER: python3.7
PYTHON_TAG: cp37
Python38:
PYTHON_VERSION_SPEC: 3.8
PYTHON_INTERPRETER: python3.8
PYTHON_TAG: cp38
timeoutInMinutes: 90
pool:
vmImage: 'macOS-10.14'
Expand Down Expand Up @@ -208,6 +218,10 @@ stages:
PYTHON_VERSION_SPEC: 3.7
IMAGE: 'Ubuntu-18.04'
PYTHON_INTERPRETER: python3
Linux_Python38:
PYTHON_VERSION_SPEC: 3.8
IMAGE: 'Ubuntu-18.04'
PYTHON_INTERPRETER: python3
Windows_Python36:
PYTHON_VERSION_SPEC: 3.6
IMAGE: 'VS2017-Win2016'
Expand All @@ -216,6 +230,10 @@ stages:
PYTHON_VERSION_SPEC: 3.7
IMAGE: 'VS2017-Win2016'
PYTHON_INTERPRETER: python
Windows_Python38:
PYTHON_VERSION_SPEC: 3.8
IMAGE: 'VS2017-Win2016'
PYTHON_INTERPRETER: python
Mac_Python36:
PYTHON_VERSION_SPEC: 3.6
IMAGE: 'macOS-10.14'
Expand All @@ -224,6 +242,10 @@ stages:
PYTHON_VERSION_SPEC: 3.7
IMAGE: 'macOS-10.14'
PYTHON_INTERPRETER: python3
Mac_Python38:
PYTHON_VERSION_SPEC: 3.8
IMAGE: 'macOS-10.14'
PYTHON_INTERPRETER: python3
timeoutInMinutes: 10
pool:
vmImage: '$(IMAGE)'
Expand Down
4 changes: 2 additions & 2 deletions build_scripts/pypi/package_files/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def windows():
import os, sys
dllPath = os.path.split(os.path.realpath(__file__))[0]
if sys.version_info >= (3, 8, 0):
os.add_dll_directory(dllPath)
os.environ['PXR_USD_WINDOWS_DLL_PATH'] = dllPath
else:
os.environ['PATH'] = dllPath + os.pathsep + os.environ['PATH']
''')
Expand Down Expand Up @@ -128,5 +128,5 @@ def windows():
"Environment :: Console",
"Topic :: Multimedia :: Graphics",
],
python_requires='>=3.6, <3.8',
python_requires='>=3.6, <3.9',
)

0 comments on commit 8d107af

Please sign in to comment.