mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-08 02:05:14 +00:00
replace deprecated distutils with setuptools
Adds python3 setuptools as a build dependency for libapparmor Fixes: https://gitlab.com/apparmor/apparmor/-/issues/202 MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/813 Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com> Acked-by: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
@@ -20,14 +20,14 @@
|
||||
# Note: --version=... must be the last argument to this script
|
||||
#
|
||||
|
||||
from distutils.command.install import install as _install
|
||||
from distutils.core import setup
|
||||
from setuptools.command.install import install as _install
|
||||
from setuptools import setup
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
class Install(_install, object):
|
||||
'''Override distutils to install the files where we want them.'''
|
||||
'''Override setuptools to install the files where we want them.'''
|
||||
def run(self):
|
||||
# Now byte-compile everything
|
||||
super(Install, self).run()
|
||||
|
Reference in New Issue
Block a user