From: wangbiao Date: Thu, 6 Jun 2024 06:43:16 +0000 (+0900) Subject: replace setup module from distuils.core to setuptools X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47cb20b31c2b53dabf88adead19c464dd95ec01a;p=tools%2Fmic.git replace setup module from distuils.core to setuptools Change-Id: Ifd48f4da4227efeacda0cb4dd82adc6e4b3899c9 Signed-off-by: wangbiao --- diff --git a/debian/control b/debian/control index ffda7df..6198a69 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: mic Section: devel Priority: extra Maintainer: Jian-feng Ding -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 diff --git a/packaging/mic.spec b/packaging/mic.spec index 37a402f..0162088 100755 --- a/packaging/mic.spec +++ b/packaging/mic.spec @@ -31,6 +31,7 @@ Requires: file Requires: gzip Requires: bzip2 +BuildRequires: python3-setuptools BuildRequires: python3-devel %if ! 0%{?tizen_version:1} BuildRequires: python3-docutils diff --git a/setup.py b/setup.py index eec4284..63e851c 100644 --- 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'