2021-11-13 10:52:43 +08:00
|
|
|
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
|
|
|
|
|
index 3414a76..5cb3a89 100644
|
|
|
|
|
--- a/Lib/distutils/sysconfig.py
|
|
|
|
|
+++ b/Lib/distutils/sysconfig.py
|
|
|
|
|
@@ -146,7 +146,10 @@ def parse_makefile(fn, g=None):
|
2019-09-30 11:14:35 -04:00
|
|
|
done[n] = item = ""
|
|
|
|
|
if found:
|
|
|
|
|
after = value[m.end():]
|
|
|
|
|
- value = value[:m.start()] + item + after
|
|
|
|
|
+ value = value[:m.start()]
|
|
|
|
|
+ if item.strip() not in value:
|
|
|
|
|
+ value += item
|
|
|
|
|
+ value += after
|
|
|
|
|
if "$" in after:
|
|
|
|
|
notdone[name] = value
|
|
|
|
|
else:
|
2021-11-13 10:52:43 +08:00
|
|
|
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
|
|
|
|
|
index 95b48f6..90b4e27 100644
|
|
|
|
|
--- a/Lib/sysconfig.py
|
|
|
|
|
+++ b/Lib/sysconfig.py
|
|
|
|
|
@@ -346,7 +346,10 @@ def _parse_makefile(filename, vars=None, keep_unresolved=True):
|
2019-09-30 11:14:35 -04:00
|
|
|
|
|
|
|
|
if found:
|
|
|
|
|
after = value[m.end():]
|
|
|
|
|
- value = value[:m.start()] + item + after
|
|
|
|
|
+ value = value[:m.start()]
|
|
|
|
|
+ if item.strip() not in value:
|
|
|
|
|
+ value += item
|
|
|
|
|
+ value += after
|
|
|
|
|
if "$" in after:
|
|
|
|
|
notdone[name] = value
|
|
|
|
|
else:
|
2021-11-13 10:52:43 +08:00
|
|
|
--
|
|
|
|
|
1.8.3.1
|
|
|
|
|
|