python3-configobj: backport patch for setuptools

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
This commit is contained in:
Tim Orling 2022-02-27 15:42:54 -08:00 committed by Khem Raj
parent e82c489191
commit 2481bc359f
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
From ad9024e50a9df4a2b8a1a019e07bb133c3df31bf Mon Sep 17 00:00:00 2001
From: Daniel Watkins <daniel@daniel-watkins.co.uk>
Date: Thu, 28 Aug 2014 18:49:04 +0200
Subject: [PATCH] Switch from using distutils to setuptools.
Upstream-Status: Backport
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index c6d57a6..6755ab4 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@
# http://opensource.org/licenses/BSD-3-Clause
import os
import sys
-from distutils.core import setup
+from setuptools import setup
# a simple import wouldn't work if we moved towards a package with __init__
from _version import __version__
--
2.30.2

View File

@ -6,4 +6,6 @@ LIC_FILES_CHKSUM = "file://configobj.py;md5=a7c3968dd866dfd23e91e125b669ab21"
PYPI_PACKAGE = "configobj"
SRC_URI[sha256sum] = "a2f5650770e1c87fb335af19a9b7eb73fc05ccf22144eb68db7d00cd2bcb0902"
SRC_URI += "file://0001-Switch-from-using-distutils-to-setuptools.patch"
inherit pypi setuptools3