Пример #1
0
            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()
#                     if not len( line ):
#                         continue
#                     if line[0] == 'Library':
#                         isis_secondary_set.add("lib/lib"+line[2]+"*")
#         for library in isis_secondary_set:
#             mgr.add_glob( library, INSTALLDIR )
Пример #2
0
    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
        for copy_lib in LIB_SHIP_PREFIX:
            found = None
            for soname in mgr.deplist.keys():
                if soname.startswith(copy_lib):
                    found = soname
                    break
Пример #3
0
                                            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)
                                
        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:
Пример #4
0
        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 open(opt.include, 'r') as f:
            for line in f:
                line = line.strip()
                mgr.add_glob(line, [INSTALLDIR, opt.asp_deps_dir])

        # Add some platform specific bugfixes
        if get_platform().os == 'linux':
            mgr.sym_link_lib('libproj.so', 'libproj.0.so')
            mgr.add_glob("lib/libQt5XcbQpa.*", [INSTALLDIR, opt.asp_deps_dir])

        if not opt.vw_build:
            print('Adding the ISIS libraries')
            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):
                                            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)
            
        # 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 ):
Пример #6
0
                                            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 open(opt.include, 'r') as f:
            for line in f:
                mgr.add_glob(line.strip(), [INSTALLDIR, opt.isis3_deps_dir])
            
        # Add some platform specific bugfixes
        if get_platform().os == 'linux':
            mgr.sym_link_lib('libproj.so', 'libproj.0.so')
            mgr.add_glob("lib/libQt5XcbQpa.*", [INSTALLDIR, opt.isis3_deps_dir])
                                
        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 ):