From 1e7a3471f60249c616ef9b22f3d0b53830294712 Mon Sep 17 00:00:00 2001 From: Sean Donnelly <23455376+seando-adsk@users.noreply.github.com> Date: Fri, 3 Jul 2020 15:59:51 -0400 Subject: [PATCH] MAYA-105232 - misc fixes for python3 --- build.py | 2 +- plugin/al/usdtransaction/CMakeLists.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/build.py b/build.py index 6b58072f68..0ebe2ecdc0 100644 --- a/build.py +++ b/build.py @@ -99,7 +99,7 @@ def GetVisualStudioCompilerAndVersion(): # VisualStudioVersion environment variable should be set by the # Visual Studio Command Prompt. match = re.search( - "(\d+).(\d+)", + r"(\d+)\.(\d+)", os.environ.get("VisualStudioVersion", "")) if match: return (msvcCompiler, tuple(int(v) for v in match.groups())) diff --git a/plugin/al/usdtransaction/CMakeLists.txt b/plugin/al/usdtransaction/CMakeLists.txt index f11f042111..c6894cf523 100644 --- a/plugin/al/usdtransaction/CMakeLists.txt +++ b/plugin/al/usdtransaction/CMakeLists.txt @@ -34,7 +34,6 @@ foreach(INPUT_FILE ${PY_INIT_FILES}) get_filename_component(OUTPUT_PATH ${OUTPUT_FILE} DIRECTORY) install(FILES ${INPUT_FILE} # .py files - ${INPUT_FILE}c # .pyc files DESTINATION ${OUTPUT_PATH} ) endforeach()