[apparmor] [PATCH] update utils/python-tools-setup.py to honor PYTHON_VERSIONS

Jamie Strandboge jamie at canonical.com
Fri Jun 29 19:22:38 UTC 2012

With the recent merge to update AppArmor to support python3, there
remains the issue of setting up the shebang in python scripts to use
PYTHON_VERSIONS if it is defined. This is important for aa-easyprof
since it installs a python module. Currently, it is possible that the
module is installed for python3, but the system defaults to python2, so
it can't find the module. Attached is a patch to python-tools-setup.py
to honor allow distributions to set PYTHON_VERSIONS in their build
environment and have everything work the way they expect..

Note that aa-status is also written in python, but it doesn't use
python-tools-setup.py. This isn't a big problem though since it is a
standalone bi-lingual script.

Jamie Strandboge             | http://www.canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-setuptools-python3.patch
Type: text/x-patch
Size: 1230 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20120629/1c6445c2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20120629/1c6445c2/attachment.pgp>

More information about the AppArmor mailing list