Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
build/sage_bootstrap/installcheck.py: Implement for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jul 21, 2022
1 parent 5faa8cb commit 9265416
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/sage_bootstrap/installcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,21 @@ def installcheck(spkg_name, sage_local, verbose=False):
"'{0}'".format(spkg_name), file=sys.stderr)

for f in files:
f = os.path.join(sage_local, f)
if f.endswith(('.so', '.dylib')):
if verbose:
print("Checking shared library file '{0}'"
.format(f), file=sys.stderr)
from delocate.libsana import _tree_libs_from_libraries, _filter_system_libs
_tree_libs_from_libraries([f],
lib_filt_func=_filter_system_libs,
copy_filt_func=lambda path: True)
elif f.endswith('.whl'):
if verbose:
print("Checking wheel file '{0}'"
.format(f), file=sys.stderr)
from delocate import wheel_libs
wheel_libs(f)


def dir_type(path):
Expand Down

0 comments on commit 9265416

Please sign in to comment.