print('\tRemoving system libs') sys.stdout.flush() mgr.remove_deps(LIB_SYSTEM_LIST) # print('\tFinding deps in search path') # sys.stdout.flush() # mgr.resolve_deps(nocopy = [P.join(ISISROOT, 'lib'), P.join(ISISROOT, '3rdParty', 'lib')], # copy = [INSTALLDIR.lib()]) # if mgr.deplist: # raise Exception('Failed to find some libs in any of our dirs:\n\t%s' % '\n\t'.join(mgr.deplist.keys())) # We don't want to distribute with ASP any random files in # 'docs' installed by any of its deps. Distribute only # what we need. for f in glob(P.join(INSTALLDIR.doc(), '*')): base_f = os.path.basename(f) if base_f not in [ 'AUTHORS', 'COPYING', 'INSTALLGUIDE', 'NEWS', 'README', 'THIRDPARTYLICENSES', 'examples' ]: try: os.remove(f) except Exception: pass # print('Adding files in dist-add and docs') # sys.stdout.flush() # # To do: Don't depend on cwd # for dir in 'dist-add', INSTALLDIR.doc(): # if P.exists(dir): # mgr.add_directory(dir)
if found: mgr.add_library(mgr.deplist[found]) mgr.remove_deps([found]) print('\tRemoving system libs') mgr.remove_deps(LIB_SYSTEM_LIST) print('\tFinding deps in search path') mgr.resolve_deps(nocopy = [P.join(ISISROOT, 'lib'), P.join(ISISROOT, '3rdParty', 'lib')], copy = [INSTALLDIR.lib()]) if mgr.deplist: raise Exception('Failed to find some libs in any of our dirs:\n\t%s' % '\n\t'.join(mgr.deplist.keys())) print('Adding files in dist-add and docs') #XXX Don't depend on cwd for dir in 'dist-add', INSTALLDIR.doc(): if P.exists(dir): mgr.add_directory(dir) print('Baking RPATH and stripping binaries') mgr.bake(map(lambda path: P.relpath(path, INSTALLDIR), SEARCHPATH)) debuglist = mgr.find_filter('-name', '*.debug') mgr.make_tarball(exclude = [debuglist.name]) if P.getsize(debuglist.name) > 0: mgr.make_tarball(include = debuglist.name, name = '%s-debug.tar.gz' % mgr.tarname) finally: if not opt.keeptemp: mgr.remove_tempdir()
'/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks']) # TODO: Including system libraries rather than libaries we build ourselves may be dangerous! if mgr.deplist: if not opt.force_continue: # For each lib, print who uses it: for lib in mgr.deplist.keys(): if lib in mgr.parentlib.keys(): print("Library " + lib + " is not found, and is needed by " + " ".join(mgr.parentlib[lib]) + "\n" ) raise Exception('Failed to find some libs in any of our dirs:\n\t%s' % '\n\t'.join(mgr.deplist.keys())) else: print("Warning: missing libs: " + '\n\t'.join(mgr.deplist.keys()) + "\n") # We don't want to distribute with ASP any random files in # 'docs' installed by any of its deps. Distribute only what we need. # - In the VW build clean out docs completely because we still get junk for f in glob(P.join(INSTALLDIR.doc(),'*')): base_f = os.path.basename(f) if (base_f not in ['AUTHORS', 'COPYING', 'INSTALLGUIDE', 'NEWS', 'README', 'THIRDPARTYLICENSES', 'examples']) or opt.vw_build: try: os.remove(f) except Exception: pass print('Adding files in dist-add and docs') sys.stdout.flush() # To do: Don't depend on cwd for dir in 'dist-add', INSTALLDIR.doc(): if P.exists(dir): mgr.add_directory(dir) print('Baking RPATH and stripping binaries')
sys.stdout.flush() mgr.remove_deps(LIB_SYSTEM_LIST) print('\tFinding deps in search path') sys.stdout.flush() mgr.resolve_deps(nocopy = [P.join(ISISROOT, 'lib'), P.join(ISISROOT, '3rdParty', 'lib')], copy = [INSTALLDIR.lib(), '/opt/X11/lib', '/usr/lib', '/usr/lib64', '/lib64', '/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks']) # TODO: Including system libraries rather than libaries we build ourselves may be dangerous! if mgr.deplist: raise Exception('Failed to find some libs in any of our dirs:\n\t%s' % '\n\t'.join(mgr.deplist.keys())) # We don't want to distribute with ASP any random files in # 'docs' installed by any of its deps. Distribute only what we need. # - In the VW build clean out docs completely because we still get junk for f in glob(P.join(INSTALLDIR.doc(),'*')): base_f = os.path.basename(f) if (base_f not in ['AUTHORS', 'COPYING', 'INSTALLGUIDE', 'NEWS', 'README', 'THIRDPARTYLICENSES', 'examples']) or opt.vwBuild: try: os.remove(f) except Exception: pass print('Adding files in dist-add and docs') sys.stdout.flush() # To do: Don't depend on cwd for dir in 'dist-add', INSTALLDIR.doc(): if P.exists(dir): mgr.add_directory(dir) print('Baking RPATH and stripping binaries')
print('\tFinding deps in search path') sys.stdout.flush() mgr.resolve_deps(nocopy=[ P.join(ISISROOT, 'lib'), P.join(ISISROOT, '3rdParty', 'lib') ], copy=[INSTALLDIR.lib()]) if mgr.deplist: raise Exception( 'Failed to find some libs in any of our dirs:\n\t%s' % '\n\t'.join(mgr.deplist.keys())) print('Adding files in dist-add and docs') sys.stdout.flush() # To do: Don't depend on cwd for dir in 'dist-add', INSTALLDIR.doc(): if P.exists(dir): mgr.add_directory(dir) print('Baking RPATH and stripping binaries') sys.stdout.flush() mgr.bake(map(lambda path: P.relpath(path, INSTALLDIR), SEARCHPATH)) debuglist = mgr.find_filter('-name', '*.debug') mgr.make_tarball(exclude=[debuglist.name]) if P.getsize(debuglist.name) > 0: mgr.make_tarball(include=debuglist.name, name='%s-debug.tar.bz2' % mgr.tarname) finally: if not opt.keeptemp:
print("\tRemoving system libs") sys.stdout.flush() mgr.remove_deps(LIB_SYSTEM_LIST) # print('\tFinding deps in search path') # sys.stdout.flush() # mgr.resolve_deps(nocopy = [P.join(ISISROOT, 'lib'), P.join(ISISROOT, '3rdParty', 'lib')], # copy = [INSTALLDIR.lib()]) # if mgr.deplist: # raise Exception('Failed to find some libs in any of our dirs:\n\t%s' % '\n\t'.join(mgr.deplist.keys())) # We don't want to distribute with ASP any random files in # 'docs' installed by any of its deps. Distribute only # what we need. for f in glob(P.join(INSTALLDIR.doc(), "*")): base_f = os.path.basename(f) if base_f not in ["AUTHORS", "COPYING", "INSTALLGUIDE", "NEWS", "README", "THIRDPARTYLICENSES", "examples"]: try: os.remove(f) except Exception: pass # print('Adding files in dist-add and docs') # sys.stdout.flush() # # To do: Don't depend on cwd # for dir in 'dist-add', INSTALLDIR.doc(): # if P.exists(dir): # mgr.add_directory(dir) print("Baking RPATH and stripping binaries") sys.stdout.flush()