forked from openembedded/meta-openembedded
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Khem Raj <[email protected]>
- Loading branch information
1 parent
06c810a
commit 3e2ed1d
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
meta-networking/recipes-connectivity/ufw/ufw/setuptools.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
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 <[email protected]> | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters