# parser.print_help() # die('\nIllegal argument to --isisroot: path does not exist') # Ensure installdir/bin is in the path, to be able to find chrpath, etc. if "PATH" not in os.environ: os.environ["PATH"] = "" os.environ["PATH"] = P.join(installdir, 'bin') + \ os.pathsep + os.environ["PATH"] logging.basicConfig(level=opt.loglevel) mgr = DistManager(tarball_name()) try: INSTALLDIR = Prefix(installdir) # 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()
parser.print_help() die('\nIllegal argument to --isisroot: path does not exist') # Ensure installdir/bin is in the path, to be able to find chrpath, etc. if "PATH" not in os.environ: os.environ["PATH"] = "" os.environ["PATH"] = P.join(installdir, 'bin') + \ os.pathsep + os.environ["PATH"] logging.basicConfig(level=opt.loglevel) mgr = DistManager(tarball_name()) try: INSTALLDIR = Prefix(installdir) 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)
usage('Missing required argument: installdir') installdir = P.realpath(args[0]) if not (P.exists(installdir) and P.isdir(installdir)): usage('Invalid installdir %s (not a directory)' % installdir) if opt.isisroot is not None and not P.isdir(opt.isisroot): parser.print_help() 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:
# Ensure installdir/bin is in the path, to be able to find chrpath, etc. if "PATH" not in os.environ: os.environ["PATH"] = "" os.environ["PATH"] = P.join(installdir, 'bin') + os.pathsep + os.environ["PATH"] logging.basicConfig(level=opt.loglevel) wrapper_file = 'libexec-helper.sh' if (opt.vwBuild): wrapper_file = 'libexec-helper_vw.sh' mgr = DistManager(tarball_name(), wrapper_file) try: INSTALLDIR = Prefix(installdir) 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()
# Ensure installdir/bin is in the path, to be able to find chrpath, etc. if "PATH" not in os.environ: os.environ["PATH"] = "" os.environ["PATH"] = P.join(installdir, 'bin') + os.pathsep + os.environ["PATH"] logging.basicConfig(level=opt.loglevel) wrapper_file = 'libexec-helper.sh' if (opt.vw_build): wrapper_file = 'libexec-helper_vw.sh' mgr = DistManager(tarball_name(), wrapper_file) try: INSTALLDIR = Prefix(installdir) ISISROOT = P.join(INSTALLDIR) SEARCHPATH = [INSTALLDIR.lib(), INSTALLDIR.lib()+'64'] 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)
logging.basicConfig(level=opt.loglevel) lib_ext = '.dylib' if get_platform().os == 'linux': lib_ext = '.so' wrapper_file = 'libexec-helper.sh' if (opt.vw_build): wrapper_file = 'libexec-helper_vw.sh' mgr = DistManager(tarball_name(), wrapper_file, opt.asp_deps_dir) try: INSTALLDIR = Prefix(installdir) ISISROOT = P.join(INSTALLDIR) SEARCHPATH = [ INSTALLDIR.lib(), opt.asp_deps_dir + '/lib', opt.asp_deps_dir + '/x86_64-conda-linux-gnu/sysroot/usr/lib64' ] 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 "PATH" not in os.environ: os.environ["PATH"] = "" os.environ["PATH"] = P.join(opt.asp_deps_dir, 'bin') + os.pathsep + \ os.environ["PATH"] if "LD_LIBRARY_PATH" not in os.environ: os.environ["LD_LIBRARY_PATH"] = "" os.environ["LD_LIBRARY_PATH"] = INSTALLDIR.lib() + \
logging.basicConfig(level=opt.loglevel) lib_ext = '.dylib' if get_platform().os == 'linux': lib_ext = '.so' wrapper_file = 'libexec-helper.sh' if (opt.vw_build): wrapper_file = 'libexec-helper_vw.sh' mgr = DistManager(tarball_name(), wrapper_file) try: INSTALLDIR = Prefix(installdir) ISISROOT = P.join(INSTALLDIR) SEARCHPATH = [INSTALLDIR.lib(), INSTALLDIR.lib()+'64'] 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)
logging.basicConfig(level=opt.loglevel) lib_ext = '.dylib' if get_platform().os == 'linux': lib_ext = '.so' wrapper_file = 'libexec-helper.sh' if (opt.vw_build): wrapper_file = 'libexec-helper_vw.sh' mgr = DistManager(tarball_name(), wrapper_file) try: INSTALLDIR = Prefix(installdir) ISISROOT = P.join(INSTALLDIR) SEARCHPATH = [INSTALLDIR.lib(), INSTALLDIR.lib()+'64', opt.isis3_deps_dir + '/lib'] 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)
parser.print_help() die('\nIllegal argument to --isisroot: path does not exist') # Ensure installdir/bin is in the path, to be able to find chrpath, etc. if "PATH" not in os.environ: os.environ["PATH"] = "" os.environ["PATH"] = P.join(installdir, 'bin') + \ os.pathsep + os.environ["PATH"] logging.basicConfig(level=opt.loglevel) mgr = DistManager(tarball_name()) try: INSTALLDIR = Prefix(installdir) 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()