Ross Burton 3e2ed1dcc0 ufw: port to setuptools, use setuptools_legacy
This package has a traditional setup.py which has a custom install command,
which isn't supported with the modern wheel/pip installation method.

Until upstream has moved away from distutils, use setuptools_legacy so
the installation is correct.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00

21 lines
570 B
Diff

Move to setuptools as distutils is now deprecated.
Upstream-Status: Submitted [https://code.launchpad.net/~tgamblin/ufw/distutils-to-setuptools]
Signed-off-by: Ross Burton <ross.burton@arm.com>
diff --git a/setup.py b/setup.py
index cb67a6a..de648d3 100644
--- a/setup.py
+++ b/setup.py
@@ -25,8 +25,8 @@
#
from __future__ import print_function
-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 errno
import os
import re