[Scons-users] parse error using $()

Bill Deegan bill at baddogconsulting.com
Sat Sep 30 16:14:31 EDT 2017


Likely due to a patch to allow recursive signature escaping which made it
into 3.0.
I'll take a look and see if I can fix.

On Fri, Sep 29, 2017 at 8:01 PM, Bill Deegan <bill at baddogconsulting.com>
wrote:

> Is that with python3 or python2?
>
> On Fri, Sep 29, 2017 at 4:12 PM, Noah Hoffman <noah.hoffman at gmail.com>
> wrote:
>
>> Hi,
>>
>> I've noticed a change in way that scons parses command strings in
>> version 3.0 that results in an error. Here's a minimal example (with
>> python 2.7.11 in a virtualenv):
>>
>> % cat SConstruct
>> env = Environment(SHELL='bash')
>>
>> env.Command(
>>     target='foo.txt',
>>     source='SConstruct',
>>     action='echo $$(pwd) > $TARGET',
>> )
>> % pip install 'scons<3.0'
>> % scons --version
>> SCons by Steven Knight et al.:
>>         script: v2.5.1.rel_2.5.1:3735:9dc6cee5c168[MODIFIED],
>> 2016/11/03 14:02:02, by bdbaddog on mongodog
>> % scons
>> scons: Reading SConscript files ...
>> scons: done reading SConscript files.
>> scons: Building targets ...
>> scons: `.' is up to date.
>> scons: done building targets.
>> % pip install -U scons
>> % scons --version
>> SCons by Steven Knight et al.:
>>         script: v3.0.0.rel_3.0.0:4395:8972f6a2f699[MODIFIED],
>> 2017/09/18 13:28:16, by bdbaddog on ubuntu-16
>> % scons
>> scons: Reading SConscript files ...
>> scons: done reading SConscript files.
>> scons: Building targets ...
>> scons: *** [foo.txt] Unbalanced $(/$) in: echo $(pwd) > foo.txt
>> scons: building terminated because of errors.
>>
>> I tried various strategies for escaping the dollar signs and
>> parentheses without success.
>>
>> Thanks for any help,
>> Noah
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170930/5494c705/attachment.html>


More information about the Scons-users mailing list