kivy-ios
kivy-ios copied to clipboard
Cleaning site-packages directory
The site-packages installed on the device contains files that could be safely removed.
- all the dist-info directories
- .so.libs
And to remove safely all the py files, we need to:
-
cd dist/root/python3
-
cp -a lib lib.old
-
../../hostpython3/bin/python -m compileall -b lib
-
find lib -regex '.*\.py$' | xargs rm
-
find lib -iname __pycache__ | xargs rm -rf
IMO, this should be done after any pip install, or recipe installation
@tito There does not appear to be a dist/root/python3
folder anymore, so the comment may be outdated. Would this be equivalent to dist/hostpython3/lib/python3.8/site-packages
in the latest builds? And for that matter, would it not also apply to the parent dist/hostpython3/lib/python3.8
as well?