[Scons-users] Problem upgrading from 3.0.1 to 3.1.2

Steve Hill (Wireless) Steve.Hill1 at viavisolutions.com
Thu May 14 05:26:52 EDT 2020


Hi,

We have a tool that requires weird hybrid paths so I make use of this (taken from https://scons.org/doc/production/HTML/scons-man.html):

>> You can use this feature to pass arguments to a Python function by creating a callable class that stores one or more arguments in an object, and then uses them when the __call__() method is called

Specifically:

class Cygwinify(object):
    def __init__(self, thing, makePathsRelative = True, debug = False):
        [...]
    def __call__(self, target, source, env, for_signature):
        [...]

    env["CYGWINIFY"] = Cygwinify

    env["CCCOM"] = "$CC $_CCCOMCOM $CCFLAGS -o ${CYGWINIFY('$TARGET')} -c ${CYGWINIFY('$SOURCES')}"

This has worked from 0.98 to 3.0.1 and Python 2 (currently 2.7.12) to produce something like:

powerpc-eabi-gcc <stuff...>  -o ../tm_system/kernel_core/build/Abb/ppc405/debug/756409BC/A7A70B7A/k_mem.o -c ../tm_system/kernel_core/code/k_mem.c

I am now trying to upgrade to 3.1.2 and Python 3.6.3 and get this:

powerpc-eabi-gcc <stuff...> -o <edk_v10_1.Cygwinify object at 0x000001E1FEE95EB8> -c <edk_v10_1.Cygwinify object at 0x000001E1FEE95E10>

Have I missed something in my Python 2 -> Python 3 port or has something changed in SCons between 3.0 and 3.1?

Thanks in advance,

Steve.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20200514/9fa4eeb7/attachment.html>


More information about the Scons-users mailing list