ISCE_INSAR/components/isceobj/Planet/SConscript

31 lines
907 B
Python
Raw Normal View History

2019-01-16 19:40:08 +00:00
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Giangi Sacco
# NASA Jet Propulsion Laboratory
# California Institute of Technology
# (C) 2009 All Rights Reserved
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/usr/bin/env python
import os
Import('envisceobj')
envPlanet = envisceobj.Clone()
project = 'Planet'
package = envPlanet['PACKAGE']
envPlanet['PROJECT'] = project
Export('envPlanet')
install = os.path.join(envPlanet['PRJ_SCONS_INSTALL'],package,project)
initFile = '__init__.py'
if not os.path.exists(initFile):
fout = open(initFile,"w")
fout.write("#!/usr/bin/env python")
fout.close()
listFiles = ['AstronomicalHandbook.py','Ellipsoid.py','Planet.py',initFile]
envPlanet.Install(install,listFiles)
envPlanet.Alias('install',install)