kivy-ios icon indicating copy to clipboard operation
kivy-ios copied to clipboard

Cleaning site-packages directory

Open tito opened this issue 5 years ago • 1 comments

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 avatar Sep 29 '19 14:09 tito

@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?

Zen-CODE avatar Oct 05 '20 10:10 Zen-CODE