Last change
on this file since 2871 was 2830, checked in by WataruKawasaki, 11 years ago |
New Development: Yes
JIRA Issue: Yes (CAS-3620)
Ready for Test: Yes
Interface Changes: No
What Interface Changed:
Test Programs:
Put in Release Notes: Yes
Module(s): sd
Description: a new simple plotter based on PGPLOT. the module name is sd.plotter2. only available on casapy (unavailable in the standalone ASAP)
|
|
File size:
1017 bytes
|
Rev | Line | |
---|
[1082] | 1 | import os,glob,shutil
|
---|
| 2 |
|
---|
| 3 | # import root environment
|
---|
[1135] | 4 | Import( "env")
|
---|
[1429] | 5 | myenv = env.Clone()
|
---|
[1082] | 6 |
|
---|
[1109] | 7 | # gather cpp files
|
---|
[1135] | 8 | cpps = env.SGlob("*.cpp")
|
---|
[2830] | 9 | cpps.remove("Plotter2.cpp")
|
---|
[1135] | 10 | pycpps = env.SGlob("python_*.cpp")
|
---|
[1873] | 11 | for pf in pycpps:
|
---|
| 12 | cpps.remove(pf)
|
---|
[2830] | 13 | pycpps.remove("python_Plotter2.cpp")
|
---|
[1082] | 14 |
|
---|
| 15 | # location of libcasav.a
|
---|
[1105] | 16 | myenv.Prepend( LIBPATH = ['#/build'] )
|
---|
[1082] | 17 | myenv['SHLIBPREFIX']="" #gets rid of lib prefix
|
---|
[1325] | 18 | myenv.Append(CCFLAGS=["-DWCSLIB_GETWCSTAB"])
|
---|
[1082] | 19 | # need to create library here to fool scons linker
|
---|
[1121] | 20 | libasap = myenv.StaticLibrary(target = "asap", source = cpps)
|
---|
| 21 | myenv.Prepend( LIBS = ['asap'] )
|
---|
| 22 |
|
---|
[1873] | 23 | shenv = myenv.Clone()
|
---|
| 24 | pyrapdir = shenv.get("pyrapint", None)
|
---|
| 25 | if pyrapdir:
|
---|
| 26 | shenv.PrependUnique(CPPPATH=pyrapdir)
|
---|
| 27 | pycpps += shenv.Glob('%s/pyrap/*/*.cc' % pyrapdir)
|
---|
[1082] | 28 | # Finally create the library for the module
|
---|
[1873] | 29 | if not hasattr(shenv, "LoadableModule"):
|
---|
| 30 | shenv.LoadableModule = shenv.SharedLibrary
|
---|
| 31 | so = shenv.LoadableModule( target = "_asap.so", source = pycpps, SHLIBSUFFIX="" )
|
---|
| 32 | #test = shenv.Program("test", cpps)
|
---|
[1082] | 33 | Return("so")
|
---|
[1121] | 34 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.