for lib in USGSCSM_PLUGINS: lib_path = P.join(lib_dir, lib + lib_ext) if P.exists(lib_path): mgr.add_library(lib_path, add_deps=False, is_plugin=True) continue print('Adding files in dist-add') sys.stdout.flush() # To do: Don't depend on cwd for dir in ['dist-add']: if P.exists(dir): mgr.add_directory(dir) print('\tRemoving system libs') sys.stdout.flush() mgr.remove_already_added(LIB_SYSTEM_LIST) print('Baking RPATH and stripping binaries') sys.stdout.flush() # Create relative paths from SEARCHPATH. Use only the first two items, # hence just the values 'lib' and 'lib64'. rel_search_path = list( map(lambda path: P.relpath(path, INSTALLDIR), SEARCHPATH[0:2])) mgr.bake(rel_search_path) debug_list_name = '' try: debuglist = mgr.find_filter('-name', '*.debug') debug_list_name = debuglist.name except: pass