/[escript]/branches/ROBW_XPLATFORM/scons/scons_extensions.py
ViewVC logotype

Log of /branches/ROBW_XPLATFORM/scons/scons_extensions.py

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 676 - (view) (annotate) - [select for diffs]
Modified Sun Mar 26 10:13:34 2006 UTC (15 years, 6 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 (15 years, 6 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 (15 years, 6 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 (15 years, 6 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 (15 years, 7 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

Revision 487 - (view) (annotate) - [select for diffs]
Modified Thu Feb 2 06:16:30 2006 UTC (15 years, 8 months ago) by jgs
Original Path: trunk/scons/scons_extensions.py
File length: 1897 byte(s)
Diff to previous 486
define epydoc PYTHONPATH setting

Revision 486 - (view) (annotate) - [select for diffs]
Modified Thu Feb 2 05:23:44 2006 UTC (15 years, 8 months ago) by jgs
Original Path: trunk/scons/scons_extensions.py
File length: 1994 byte(s)
Diff to previous 370
define locations of doxygen/epydoc executables

Revision 370 - (view) (annotate) - [select for diffs]
Modified Fri Dec 16 00:52:34 2005 UTC (15 years, 10 months ago) by cochrane
Original Path: trunk/scons/scons_extensions.py
File length: 1897 byte(s)
Diff to previous 360
Updated to allow for building of API documentation.


Revision 360 - (view) (annotate) - [select for diffs]
Modified Thu Dec 15 01:52:16 2005 UTC (15 years, 10 months ago) by jgs
Original Path: trunk/scons/scons_extensions.py
File length: 408 byte(s)
Diff to previous 359
add target to run all unit tests, the build will fail
for this target if any unit test fails


Revision 359 - (view) (annotate) - [select for diffs]
Modified Thu Dec 15 01:08:03 2005 UTC (15 years, 10 months ago) by jgs
Original Path: trunk/scons/scons_extensions.py
File length: 455 byte(s)
Diff to previous 297
runUnitTest now returns an error code if the test fails


Revision 297 - (view) (annotate) - [select for diffs]
Modified Fri Dec 2 04:57:48 2005 UTC (15 years, 10 months ago) by jgs
Original Path: trunk/scons/scons_extensions.py
File length: 387 byte(s)
Diff to previous 268
bruce tests cases are now automatically run whenever they are rebuilt


Revision 268 - (view) (annotate) - [select for diffs]
Added Wed Nov 30 01:39:47 2005 UTC (15 years, 10 months ago) by jgs
Original Path: trunk/scons/scons_extensions.py
File length: 185 byte(s)
setup scons configuration to make and install python code


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.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.26