2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2022 Marcel Telka
16 # Create mediated symlinks in /usr/bin for python binaries
17 <transform file path=usr/bin/[^/]+-3\.\d+$ -> default tmp.fmri %{pkg.fmri} >
18 <transform file path=(usr/bin/)([^/]+)-(3\.\d+)$ tmp.fmri=.*runtime/python -> emit \
19 link path=%<1>%<2> target=%<2>-%<3> mediator=python mediator-version=%<3> >
20 <transform file path=(usr/bin/)([^/]+)-(3\.\d+)$ tmp.fmri=.*library/python/ -> emit \
21 link path=%<1>%<2> target=%<2>-%<3> mediator=python mediator-version=%<3> >
22 <transform file tmp.fmri=.* -> delete tmp.fmri .* >
24 # Bypass automatic detection of Python dependencies for files in
25 # vendor-packages directory. Such dependencies are generated from Python
27 <transform file path=usr/lib/python3\.\d+/vendor-packages/ -> add \
28 pkg.depend.bypass-generate usr/lib/python3.* >