| | |
| | | # PEP 627 made the RECORD file optional. Since we do not need the file and it |
| | | # could contain inaccurate info we simply drop it. |
| | | <transform dir file link hardlink path=usr\/lib\/python3\.\d+\/vendor-packages\/[^/]+\.dist-info/RECORD$ -> drop> |
| | | # Strip Python 3 cpython ABI extension |
| | | # Replace Python version by $(PYV) |
| | | <transform file -> \ |
| | | edit path "^(usr/lib/python3\.\d+/vendor-packages/(.*/)?[^/]+)\.cpython-3\d+\.so$" "\1.so"> |
| | | # Strip Python 3 abi3 ABI extension |
| | | <transform file -> \ |
| | | edit path "^(usr/lib/python3\.\d+/vendor-packages/(.*/)?[^/]+)\.abi3\.so$" "\1.so"> |
| | | edit path "^(usr/lib/python3\.\d+/vendor-packages/(.*/)?[^/]+\.cpython-)3\d+\.so$" "\1$!(PYV).so"> |
| | | # Replace Python version by $(PYVER) |
| | | <transform file path=usr/bin/[^/]+-3\.\d+$ -> default tmp.fmri "$(COMPONENT_FMRI)"> |
| | | <transform file tmp.fmri=.*runtime/python -> edit path "^(usr/bin/[^/]+-)3\.\d+$" "\1$!(PYVER)"> |