[apparmor] [patch] utils: fix python install for rule/ subdirectory

Christian Boltz apparmor at cboltz.de
Tue Jan 13 21:43:53 UTC 2015


Hello,

Am Dienstag, 13. Januar 2015 schrieb Steve Beattie:
> Ah right, I wrote imprecisely in my patch header; we're actually using
> python's included distutils and not setuptools, which is a separate
> project, so don't have access to find_packages().
> 
> I'd meant to offer converting to setuptools as another alternative (as
> I think there's some simplification we could do to the setup script
> if we did), but am unclear as to setuptools availability in
> non-debian derived distributions.

cb at geeko:~/apparmor/HEAD-clean/utils> python3
Python 3.4.1 (default, May 23 2014, 17:48:28) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from setuptools import setup, find_packages
>>> find_packages()
['apparmor', 'test', 'apparmor.rule']
>>> 

setuptools is shipped as separate package python{,3}-setuptools on 
openSUSE.

I'm not sure if it's worth the effort through - as you can see, you'll 
have to exclude 'test' from the list instead of adding a sub-packages 
(which probably won't happen too often ;-)

I didn't check the details of distutils vs. setuptools, so if you think 
setuptools brings us some advantages, why not? ;-)  - but please review 
my pending patches first *g*


Regards,

Christian Boltz
-- 
> I've been told that better way how to find proces witch is using
> disk is:  echo 1 >/proc/sys/vm/block_dump ; dmesg
... but to avoid the risk or syslog running amok writing that syslog
writes that syslog writes ... , shut down syslog first ;)
[> Cyril Hrubis and Michal Marek in
https://bugzilla.novell.com/show_bug.cgi?id=220146]




More information about the AppArmor mailing list