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.

classification
Title: parse_makefile doesn't handle $$ correctly
Type: behavior Stage: resolved
Components: Distutils Versions: Python 3.1, Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Using LDFLAGS='-rpath=\$$LIB:/some/other/path' ./configure breaks the build
View: 5201
Assigned To: tarek Nosy List: hanwen, jfinkels, kjachim, ned.deily, tarek
Priority: normal Keywords:

Created on 2006-05-03 20:16 by hanwen, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg60909 - (view) Author: Han-Wen Nienhuys (hanwen) * Date: 2006-05-03 20:16
In Makefiles, a $$ should expand into a literal $ 
distutils.sysconfig doesn't deal with this.

>>> print open('a.make').read ()

FOO	= $${bar} bla bla

>>> sysconfig.parse_makefile ('a.make')
{'FOO': '$ bla bla', 'bar': ''}


msg117779 - (view) Author: Jeffrey Finkelstein (jfinkels) * Date: 2010-10-01 05:49
There seems to be a test case for this:

http://svn.python.org/view/python/trunk/Lib/distutils/tests/test_sysconfig.py?view=diff&r1=73340&r2=73341
msg240991 - (view) Author: Kasia Jachim (kjachim) Date: 2015-04-14 19:21
Tested on 2.7.6 (default from Ubuntu) and 3.5.0a3+ (built from sources), in both cases $$ seems to work correctly, returned {'FOO': '${bar} bla bla'} for the input from msg60909.
msg241071 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2015-04-15 01:56
Thanks for investigating this, Kasia.  It appears that this problem was fixed some time ago in the changes associated with Issue5201.
History
Date User Action Args
2022-04-11 14:56:17adminsetgithub: 43317
2015-04-15 01:56:03ned.deilysetstatus: open -> closed

superseder: Using LDFLAGS='-rpath=\$$LIB:/some/other/path' ./configure breaks the build
versions: - Python 3.2
nosy: + ned.deily

messages: + msg241071
resolution: duplicate
stage: test needed -> resolved
2015-04-14 19:21:37kjachimsetnosy: + kjachim
messages: + msg240991
2010-10-01 05:49:05jfinkelssetnosy: + jfinkels
messages: + msg117779
2010-08-22 10:08:59BreamoreBoysetassignee: tarek
2010-07-31 11:43:30BreamoreBoysetstage: test needed
versions: + Python 3.2, - Python 2.6, Python 3.0
2009-02-05 16:34:59akitadasetnosy: + tarek
type: behavior
versions: + Python 2.6, Python 3.0, Python 3.1, Python 2.7, - Python 2.4
2006-05-03 20:16:33hanwencreate