Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b2b12172
Commit
b2b12172
authored
Jan 11, 2016
by
doko@ubuntu.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Issue #24705: Fix sysconfig._parse_makefile not expanding ${} vars
appearing before $() vars.
parent
885e1939
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
Lib/sysconfig.py
Lib/sysconfig.py
+6
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/sysconfig.py
View file @
b2b12172
...
@@ -260,7 +260,12 @@ def _parse_makefile(filename, vars=None):
...
@@ -260,7 +260,12 @@ def _parse_makefile(filename, vars=None):
while len(variables) > 0:
while len(variables) > 0:
for name in tuple(variables):
for name in tuple(variables):
value = notdone[name]
value = notdone[name]
m = _findvar1_rx.search(value) or _findvar2_rx.search(value)
m1 = _findvar1_rx.search(value)
m2 = _findvar2_rx.search(value)
if m1 and m2:
m = m1 if m1.start() < m2.start() else m2
else:
m = m1 if m1 else m2
if m is not None:
if m is not None:
n = m.group(1)
n = m.group(1)
found = True
found = True
...
...
Misc/NEWS
View file @
b2b12172
...
@@ -44,6 +44,9 @@ Core and Builtins
...
@@ -44,6 +44,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #24705: Fix sysconfig._parse_makefile not expanding ${} vars
appearing before $() vars.
- Issue #22138: Fix mock.patch behavior when patching descriptors. Restore
- Issue #22138: Fix mock.patch behavior when patching descriptors. Restore
original values after patching. Patch contributed by Sean McCully.
original values after patching. Patch contributed by Sean McCully.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment