Skip to content

Commit

Permalink
Remove foreign signature from numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
dehesselle committed Jun 25, 2022
1 parent 48f204c commit dc2e928
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,13 @@ function ink_pipinstall_numpy
"$INK_APP_BIN_DIR"/f2py$INK_PYTHON_VER_MAJOR
sed -i '' '1s|.*|#!/usr/bin/env python'"$INK_PYTHON_VER_MAJOR"'|' \
"$INK_APP_BIN_DIR"/f2py$INK_PYTHON_VER

find "$INK_APP_LIB_DIR/python$INK_PYTHON_VER/site-packages/numpy" \
'(' -name "*.so" -o -name "*.dylib" ')' \
-exec codesign --remove-signature {} \;

find "$INK_APP_LIB_DIR/python$INK_PYTHON_VER/site-packages/numpy" \
-name "*.a" -delete
}

function ink_pipinstall_pygobject
Expand Down

0 comments on commit dc2e928

Please sign in to comment.