OSDN Git Service

scons: Fix the Python dependency scanner.
authorJose Fonseca <jfonseca@vmware.com>
Fri, 14 Oct 2016 15:51:56 +0000 (16:51 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Fri, 14 Oct 2016 15:52:13 +0000 (16:52 +0100)
commitb12606b693210fb6b327ec7cc7be6d9f79940198
tree89f77362579eb360fdce58f7c2819369ad193ac8
parentc6d17701c823f10ce6d04e4ccb5df09b0186bfbd
scons: Fix the Python dependency scanner.

modulefinder wasn't searching for dependencies in the script dir.

It's not capable of detecting the sys.path manipulations scripts do
internally neither.

This change fixes the first issue, and hacks around the second.

Honestly, I've come to the conclusion that automatic Python dependency it will always be
too brittle.   I think we should start manually typing the dependencies
like we do in automake.  At very least it will enable any person to
eyeball and spot/fix missing dependencies, without dig into SCons internals.
scons/custom.py