1 parent 3dca5f1 commit f2d1c5dCopy full SHA for f2d1c5d
1 file changed
setup.py
@@ -146,6 +146,9 @@ def run(self):
146
"package_data": {"pyunity": [file[4:] for file in dataFiles]},
147
"zip_safe": False
148
}
149
+ if os.getenv("PYUNITY_COMPILER", "") == "mingw":
150
+ config["command_options"]["build_ext"]["compiler"] = ("setup.py", "mingw32")
151
+ config["command_options"]["build_ext"]["define"] = ("setup.py", "MS_WIN64")
152
else:
153
dataFiles = [a for a in glob.glob("pyunity/**/*.*", recursive=True) if ".py" not in a]
154
config = {
0 commit comments