Ravenports / ravensource

The sources to compile Ravenports buildsheets
http://www.ravenports.com
15 stars 7 forks source link

global rework for python (if possible) #322

Open jrmarino opened 3 months ago

jrmarino commented 3 months ago

I don't like pyc bytecode files. The pycache directories are ugly and ridiculous.

Since python 3.8, they don't have to be created alongside the code:

https://www.scivision.dev/python-pycache-eliminate/

write now it's controllable with PYTHONPYCACHEPREFIX environment variable.

If python interpreter can be configured to look in /var/cache/python3.xx/ (as an example) I think we should do that, and let the compilation occur lazily, and maybe use keywords to delete the cache when the packages are uninstalled.

It's a big job but it will reduce the size the the packages and it will prevent ugly pyc modification detection hacks like I'm seeing with python-pip.

jrmarino commented 3 months ago

while here, for autoupdated wheel ports, set the DIST_SUBDIR to "wheels"