Log of /branches/ROBW_XPLATFORM/scons/scons_extensions.py
Parent Directory
|
Revision Log
Revision
676 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Sun Mar 26 10:13:34 2006 UTC
(16 years, 10 months ago)
by
robwdcock
File length: 2098 byte(s)
Diff to
previous 667
+ Modified test SConscript dependencies to remove redundant call to explicit dependency
+ Modified scon_extensions.py - run unit tests (py and C++) now use scons::Execute rather than python os.system. This ensures the development environment
is used rather than the users environment to run the tests
+ SConstruct file now sets up LD_LIBRARY_PATH and PYTHONPATH to point to the current builds pyinstall and libinstall paths as required.
IT IS NO LONGER NECESSARY TO SET LD_LIBRARY_PATH and PYTHONPATH to point at your build outputs. Much safer in the presence of multiple checked out builds.
Under these circumstances you are better of using scons to run the tests rather than doing so directly. Easiest way to do this is to build the test output target for the test you want:
e.g. scons build/posix/bruce/test/python/ImportTest.passed
or if you prefer
cd build/posix/bruce/test/python
scons -u ImportTest.passed
Revision
667 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Mar 24 13:25:00 2006 UTC
(16 years, 10 months ago)
by
robwdcock
File length: 2094 byte(s)
Diff to
previous 666
+ OUCH ARGHH
+ Okay the wizzy linkHack doesn't work. Not sure why but py_tests fail
when the shared library is on the link line directly (without a -l)
+ Unfortunately we can't figure out how to use -l without it prepending
a lib prefix. Hence all the shareable objects in python now need to be
called libblah.so (and lib will need to be prepended on windows!!!!).
This is not the python way and its very annoying. Why do we have this
problem? Because the C++ shared libraries link with each other.
Revision
666 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Mar 24 11:29:40 2006 UTC
(16 years, 10 months ago)
by
robwdcock
File length: 2517 byte(s)
Diff to
previous 652
+ Fix up python esys area:
+ libraries are named without lib prefix on posix platforms (python standard)
+ libraries are now installed into the pyinstall area (python standard)
+ symlinks removed, no longer required
+ LD_LIBRARY_PATH is now optional for PYTHON programs (still required for c++)
+ lib PREFIX removal NOTES:
+ removing the lib prefix is non-standard for the linker. As such we've created a
custom function sharedLinkHack to specify the .so on the link command line
(as opposed to using -l<archive> which will prepend the lib). This has a
a small slight of hand for scons which was being to "helpful". Scons
verifies that when creating a shared libray all objects specified are
created shareable (e.g. ensure objects are compiler with -fPIC). Since
we are linking a .so out of the blue we had to wrap it up in a File note
and flag it as shared.
Easily done, once you know how. Thankfully this is all wrapped
up in a simple function (sharedLinkHack) that looks like ordinary scons so
you will never know!
Revision
652 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Mar 24 07:34:18 2006 UTC
(16 years, 10 months ago)
by
robwdcock
File length: 2094 byte(s)
Diff to
previous 622
+Add py_tests targets and get script ones running
Revision
622 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 22 14:00:08 2006 UTC
(16 years, 10 months ago)
by
robwdcock
File length: 1897 byte(s)
Diff to
previous 487
Creating a private branch so I can test and verify cross-platform build
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.