From af51a61ab1be3aca6ac7f7bd7094357ba4ab58db Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 20 Aug 2018 17:44:57 -0400 Subject: [PATCH] [Python] Fix building MSI for Python 3.7 module Workaround for https://bugs.python.org/issue34251 for Python 3.7.0 --- interfaces/cython/setup.py.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/interfaces/cython/setup.py.in b/interfaces/cython/setup.py.in index 64412f9aa..b0f321c19 100644 --- a/interfaces/cython/setup.py.in +++ b/interfaces/cython/setup.py.in @@ -30,6 +30,12 @@ if os.name == 'nt': bdist_msi.run = bdist_run_new +# Monkey patch to resolve https://bugs.python.org/issue34251 +# (Affects Python 3.7.0) +if os.name == 'nt': + import msilib + msilib.Win64 = msilib.AMD64 + # Copy the long_description from docs/sphinx/index.rst long_description = """ Cantera is a suite of object-oriented software tools for problems involving