Skip to content
Snippets Groups Projects
Commit 7f444d1d authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Work around pypy incompatibility with distutils.sysconfig

parent f73aaeb0
No related branches found
No related tags found
1 merge request!1Work around pypy incompatibility with distutils.sysconfig
Pipeline #
......@@ -163,7 +163,10 @@ def hack_distutils(debug=False, fast_link=True, what_opt=3):
cflags.append("-DNDEBUG")
cvars['OPT'] = str.join(' ', cflags)
cvars["CFLAGS"] = cvars["BASECFLAGS"] + " " + cvars["OPT"]
if "BASECFLAGS" in cvars:
cvars["CFLAGS"] = cvars["BASECFLAGS"] + " " + cvars["OPT"]
else:
assert "CFLAGS" in cvars
if fast_link:
for varname in ["LDSHARED", "BLDSHARED"]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment