SEARCHPATH = [INSTALLDIR.lib()] # Bug fix for osg3. Must set LD_LIBRARY_PATH for ldd to later # work correctly on Ubuntu 13.10. if get_platform().os == 'linux': if "LD_LIBRARY_PATH" not in os.environ: os.environ["LD_LIBRARY_PATH"] = "" os.environ["LD_LIBRARY_PATH"] = INSTALLDIR.lib( ) + os.pathsep + os.environ["LD_LIBRARY_PATH"] # if opt.isisroot is not None: # ISISROOT = opt.isisroot if opt.include == 'all': mgr.add_directory(INSTALLDIR, hardlink=True) mgr.make_tarball() sys.exit(0) else: print('Adding requested files') sys.stdout.flush() with file(opt.include, 'r') as f: for line in f: mgr.add_glob(line.strip(), INSTALLDIR) # print('Adding Libraries referred to by ISIS Plugins') # sys.stdout.flush() # isis_secondary_set = set() # for plugin in glob(P.join(INSTALLDIR,'lib','*.plugin')): # with open(plugin,'r') as f: # for line in f: # line = line.split()
print('Search path = ' + str(SEARCHPATH)) # Bug fix for osg3. Must set LD_LIBRARY_PATH for ldd to later # work correctly on Ubuntu 13.10. if get_platform().os == 'linux': if "LD_LIBRARY_PATH" not in os.environ: os.environ["LD_LIBRARY_PATH"] = "" os.environ["LD_LIBRARY_PATH"] = INSTALLDIR.lib() + \ os.pathsep + os.environ["LD_LIBRARY_PATH"] if opt.isisroot is not None: ISISROOT = opt.isisroot if opt.include == 'all': mgr.add_directory(INSTALLDIR, hardlink=True) mgr.make_tarball() sys.exit(0) print('Adding requested files') sys.stdout.flush() with file(opt.include, 'r') as f: for line in f: mgr.add_glob(line.strip(), INSTALLDIR) # This is a bugfix for some python tools to find this lib mgr.sym_link_lib('libproj.so.0', 'libproj.0.so') # Force-add this for Qt to work if get_platform().os == 'linux': mgr.add_glob("lib/libQt5XcbQpa.*", INSTALLDIR)
die('\nIllegal argument to --isisroot: path does not exist') logging.basicConfig(level=opt.loglevel) mgr = DistManager(tarball_name()) try: INSTALLDIR = Prefix(installdir) ISISROOT = P.join(INSTALLDIR, 'isis') SEARCHPATH = [P.join(ISISROOT, 'lib'), P.join(ISISROOT, '3rdParty', 'lib'), INSTALLDIR.lib()] if opt.isisroot is not None: ISISROOT = opt.isisroot if opt.include == 'all': mgr.add_directory(INSTALLDIR, hardlink=True) mgr.make_tarball() sys.exit(0) else: print('Adding requested files') with file(opt.include, 'r') as f: for line in f: mgr.add_glob(line.strip(), INSTALLDIR) print('Adding ISIS version check') with mgr.create_file('libexec/constants.sh') as f: print('BAKED_ISIS_VERSION="%s"' % isis_version(ISISROOT), file=f) print('Adding libraries') print('\tAdding forced-ship libraries') # Handle the shiplist separately
# ISISROOT = P.join(INSTALLDIR) SEARCHPATH = [INSTALLDIR.lib()] # Bug fix for osg3. Must set LD_LIBRARY_PATH for ldd to later # work correctly on Ubuntu 13.10. if get_platform().os == "linux": if "LD_LIBRARY_PATH" not in os.environ: os.environ["LD_LIBRARY_PATH"] = "" os.environ["LD_LIBRARY_PATH"] = INSTALLDIR.lib() + os.pathsep + os.environ["LD_LIBRARY_PATH"] # if opt.isisroot is not None: # ISISROOT = opt.isisroot if opt.include == "all": mgr.add_directory(INSTALLDIR, hardlink=True) mgr.make_tarball() sys.exit(0) else: print("Adding requested files") sys.stdout.flush() with file(opt.include, "r") as f: for line in f: mgr.add_glob(line.strip(), INSTALLDIR) # print('Adding Libraries referred to by ISIS Plugins') # sys.stdout.flush() # isis_secondary_set = set() # for plugin in glob(P.join(INSTALLDIR,'lib','*.plugin')): # with open(plugin,'r') as f: # for line in f: # line = line.split()