We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1345e28 commit 52a3cc1Copy full SHA for 52a3cc1
pip_install.sh
@@ -1,4 +1,8 @@
1
#!/bin/bash
2
DIR="python/lib/python$PYTHON_VERSION/site-packages"
3
pip3 install "$@" --target "$DIR"
4
+find "$DIR" -name "*.so" | xargs strip -s
5
+find "$DIR" -wholename "**/*.py[c|o]" | xargs rm -rf
6
+find "$DIR" -wholename "**/__pycache__*" | xargs rm -rf
7
+find "$DIR" -wholename "**/*.dist-info*" | xargs rm -rf
8
zip -r /libraries.zip python
0 commit comments