bytecode compiled module problem, manual intervention needed

Good day! Rather inconvenient shortly after the release, but it just came to our attention that the line used for pep517 ports, to be precise the calls to the python module 'installer', have contained a flaw, causing untracked files on the filesystem. Please follow the commit message contained with python3-wheel or share other solutions to clean up untracked files. Maintainers that have affected ports are advised to check their ports and change, if needed. Best regards, Tim [1]: https://git.crux.nu/ports/opt/commit/a96c9627397ac65c1d257be3c591bc16b45a30e...

Hello. On 05.05.2025 21:04, Tim Biermann wrote via CRUX:
Good day!
Rather inconvenient shortly after the release, but it just came to our attention that the line used for pep517 ports, to be precise the calls to the python module 'installer', have contained a flaw, causing untracked files on the filesystem. Please follow the commit message contained with python3-wheel or share other solutions to clean up untracked files.
I have followed the procedure from the commit message and have updated all recently changed python ports. But I have still some untracked files left over: # pkg-not /usr/lib/python3.12/site-packages/ /usr/lib/python3.12/site-packages/flit_core/__pycache__ /usr/lib/python3.12/site-packages/flit_core/__pycache__/buildapi.cpython-312.pyc /usr/lib/python3.12/site-packages/flit_core/__pycache__/common.cpython-312.pyc /usr/lib/python3.12/site-packages/flit_core/__pycache__/config.cpython-312.pyc /usr/lib/python3.12/site-packages/flit_core/__pycache__/__init__.cpython-312.pyc /usr/lib/python3.12/site-packages/flit_core/__pycache__/sdist.cpython-312.pyc /usr/lib/python3.12/site-packages/flit_core/__pycache__/_spdx_data.cpython-312.pyc /usr/lib/python3.12/site-packages/flit_core/__pycache__/versionno.cpython-312.pyc /usr/lib/python3.12/site-packages/flit_core/__pycache__/wheel.cpython-312.pyc I have also noticed there are still many files in /usr/lib/python3.10/site-packages/. I have updated my installation from CRUX 3.7 to 3.8. Can that folder by deleted completely without loss of functionality? It has these folders with subfolders each: /usr/lib/python3.10/site-packages/Cython /usr/lib/python3.10/site-packages/_distutils_hack /usr/lib/python3.10/site-packages/glad /usr/lib/python3.10/site-packages/jinja2 /usr/lib/python3.10/site-packages/__pycache__ /usr/lib/python3.10/site-packages/yaml/ Regards Markus Heinz

Markus Heinz via CRUX wrote in <a14f327329586cf3f843be2ea846bd80@uni-dortmund.de>: |On 05.05.2025 21:04, Tim Biermann wrote via CRUX: ... |I have also noticed there are still many files in |/usr/lib/python3.10/site-packages/. I have updated my installation from |CRUX 3.7 to 3.8. Can that folder by deleted completely without loss of |functionality? It has these folders with subfolders each: Upgrade seems not to be supported as python and perl are in "core". So in the end it is around that i would think. But it would be easier if dependency tracking would finally be changed to include the core ports, too, imho. (I asked in the past, but jue@ then said "no", .. practically speaking.) --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)

Hi Markus, On 06.05.2025 21:41, Markus Heinz via CRUX wrote:
I have followed the procedure from the commit message and have updated all recently changed python ports. But I have still some untracked files left over:
# pkg-not /usr/lib/python3.12/site-packages/ /usr/lib/python3.12/site-packages/flit_core/__pycache__ [..] /usr/lib/python3.12/site-packages/flit_core/__pycache__/wheel.cpython-312.pyc
In the meantime I already pushed an update to the port, this should be fixed now. Thanks for the report!
I have also noticed there are still many files in /usr/lib/python3.10/site-packages/. I have updated my installation from CRUX 3.7 to 3.8. Can that folder by deleted completely without loss of functionality? It has these folders with subfolders each:
/usr/lib/python3.10/site-packages/Cython [..] /usr/lib/python3.10/site-packages/yaml/
These can be safely deleted. Without the corresponding python version installed these do nothing for you. On an upside: these should all be the same type of untracked files like these we changed recently. So hopefully, a clean upgrade in the future will not leave you with a dangling python site-packages dir. Best regards, Tim

Hi Tim. Tim Biermann via CRUX wrote at 2025-05-12 16:49:10:
Hi Markus,
On 06.05.2025 21:41, Markus Heinz via CRUX wrote:
I have followed the procedure from the commit message and have updated all recently changed python ports. But I have still some untracked files left over:
# pkg-not /usr/lib/python3.12/site-packages/ /usr/lib/python3.12/site-packages/flit_core/__pycache__ [..] /usr/lib/python3.12/site-packages/flit_core/__pycache__/wheel.cpython-312.pyc
In the meantime I already pushed an update to the port, this should be fixed now. Thanks for the report!
Thanks for the bugfix.
I have also noticed there are still many files in /usr/lib/python3.10/site-packages/. I have updated my installation from CRUX 3.7 to 3.8. Can that folder by deleted completely without loss of functionality? It has these folders with subfolders each:
/usr/lib/python3.10/site-packages/Cython [..] /usr/lib/python3.10/site-packages/yaml/
These can be safely deleted. Without the corresponding python version installed these do nothing for you.
Thank you for confirmation.
Best regards, Tim
Best regards Markus Heinz
participants (3)
-
Markus Heinz
-
Steffen Nurpmeso
-
Tim Biermann