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) if not opt.vw_build: 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() if not len( line ): continue
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) # Add some platform specific bugfixes if get_platform().os == 'linux': mgr.sym_link_lib('libproj.so.0', 'libproj.0.so') mgr.add_glob("lib/libQt5XcbQpa.*", INSTALLDIR) if not opt.vw_build: 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() if not len( line ): continue if line[0] == 'Library': isis_secondary_set.add("lib/lib"+line[2]+"*") for library in isis_secondary_set: