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') # 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"]
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') # 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:
# 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) 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"] = ""