replace setup module from distuils.core to setuptools 98/312298/1 sandbox/xuwc/reuse_create_env
authorwangbiao <biao716.wang@samsung.com>
Thu, 6 Jun 2024 06:43:16 +0000 (15:43 +0900)
committerwangbiao <biao716.wang@samsung.com>
Thu, 6 Jun 2024 06:43:16 +0000 (15:43 +0900)
Change-Id: Ifd48f4da4227efeacda0cb4dd82adc6e4b3899c9
Signed-off-by: wangbiao <biao716.wang@samsung.com>
debian/control
packaging/mic.spec
setup.py

index ffda7df..6198a69 100644 (file)
@@ -2,7 +2,7 @@ Source: mic
 Section: devel
 Priority: extra
 Maintainer: Jian-feng Ding <jian-feng.ding@intel.com>
-Build-Depends: debhelper (>= 7.0.15), cdbs, python3, python3-requests, python3-all, python3-dev, dh-python, python3-docutils
+Build-Depends: debhelper (>= 7.0.15), cdbs, python3, python3-requests, python3-setuptools, python3-all, python3-dev, dh-python, python3-docutils
 Standards-Version: 3.8.0
 Homepage: http://www.tizen.org
 
index 37a402f..0162088 100755 (executable)
@@ -31,6 +31,7 @@ Requires:   file
 Requires:   gzip
 Requires:   bzip2
 
+BuildRequires:  python3-setuptools
 BuildRequires:  python3-devel
 %if ! 0%{?tizen_version:1}
 BuildRequires:  python3-docutils
index eec4284..63e851c 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -21,8 +21,9 @@
 
 import os, sys
 import glob
-from distutils.core import setup
-
+#The distutils package is deprecated and slated for removal in Python 3.12
+#from distutils.core import setup
+from setuptools import setup
 
 MOD_NAME = 'mic'