Skip to content

Commit

Permalink
[CI] Fix build failures with Python 3.8 on windows-2022 image
Browse files Browse the repository at this point in the history
  • Loading branch information
speth authored and ischoegl committed Jan 21, 2023
1 parent 49c06fd commit 8fcebbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SConscript
Expand Up @@ -90,6 +90,9 @@ if env["python_package"] == "full":
if env["OS"] == "Windows":
escaped_home = '\\"' + pyenv["py_base"].replace("\\", "\\\\") + '\\"'
pyenv.Append(CPPDEFINES={"CT_PYTHONHOME": escaped_home})
# Workaround for a problem with Boost, Python 3.8 and MSVC
pyenv.Append(CPPDEFINES={"HAVE_SNPRINTF": None})

env.Command('#src/extensions/pythonExtensions.h', '#build/src/extensions/pythonExtensions.h',
Copy('$TARGET', '$SOURCE'))
libraryTargets.append(obj)
Expand Down

0 comments on commit 8fcebbc

Please sign in to comment.