This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lepaperwan
Recipients lepaperwan
Date 2018-09-14.20:11:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536955893.22.0.956365154283.issue34689@psf.upfronthosting.co.za>
In-reply-to
Content
Lib/sysconfig.py _parse_makefile needs to expand Makefile-style variables which includes `$()` `${}` variables with a litteral `$` being `$$`.

That last particular point is properly accounted for in the first half of the function when determining values that need expansion and those that don't. However, the second half that actually performs variable expansion doesn't.

Sample breaking input:
VAR1=  VALUE1
VAR2=  VALUE2
VAR3=$${VAR1} ${VAR2}

Output:
Expect: {'VAR1': 'VALUE1', 'VAR2': 'VALUE2', 'VAR3': '$${VAR1} VALUE2'}
Actual: {'VAR1': 'VALUE1', 'VAR2': 'VALUE2', 'VAR3': '$VALUE1 VALUE2'}

I'm working on patching this but I'm putting this here as feedback is welcome.

As far as I could tell, this is a side effect of b2b1217, which patched #24705.
History
Date User Action Args
2018-09-14 20:11:33lepaperwansetrecipients: + lepaperwan
2018-09-14 20:11:33lepaperwansetmessageid: <1536955893.22.0.956365154283.issue34689@psf.upfronthosting.co.za>
2018-09-14 20:11:33lepaperwanlinkissue34689 messages
2018-09-14 20:11:33lepaperwancreate