xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] tools: convert setup.py to use setuptools
@ 2023-03-16 17:16 Marek Marczykowski-Górecki
  2023-03-16 17:16 ` [PATCH 2/4] tools: don't use distutils in configure nor Makefile Marek Marczykowski-Górecki
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Marek Marczykowski-Górecki @ 2023-03-16 17:16 UTC (permalink / raw)
  To: xen-devel; +Cc: Marek Marczykowski-Górecki, Wei Liu, Anthony PERARD

Python distutils is deprecated and is going to be removed in Python
3.12. Migrate to setuptools.
Setuptools in Python 3.11 complains:
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
Keep using setup.py anyway to build C extension.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
---
 tools/pygrub/setup.py | 3 +--
 tools/python/setup.py | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/tools/pygrub/setup.py b/tools/pygrub/setup.py
index 0e4e3d02d372..5db743180713 100644
--- a/tools/pygrub/setup.py
+++ b/tools/pygrub/setup.py
@@ -1,5 +1,4 @@
-from distutils.core import setup, Extension
-from distutils.ccompiler import new_compiler
+from setuptools import setup, Extension
 import os
 import sys
 
diff --git a/tools/python/setup.py b/tools/python/setup.py
index 721a3141d7b7..7d57ccfbfffb 100644
--- a/tools/python/setup.py
+++ b/tools/python/setup.py
@@ -1,5 +1,4 @@
-
-from distutils.core import setup, Extension
+from setuptools import setup, Extension
 import os, sys
 
 XEN_ROOT = "../.."
-- 
2.39.2



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-03-17 14:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-16 17:16 [PATCH 1/4] tools: convert setup.py to use setuptools Marek Marczykowski-Górecki
2023-03-16 17:16 ` [PATCH 2/4] tools: don't use distutils in configure nor Makefile Marek Marczykowski-Górecki
2023-03-16 17:16 ` [PATCH 3/4] tools: regenerate configure Marek Marczykowski-Górecki
2023-03-16 17:16 ` [PATCH 4/4] Update README to state Python3 requirement Marek Marczykowski-Górecki
2023-03-17  8:46   ` Jan Beulich
2023-03-17 12:04     ` Marek Marczykowski-Górecki
2023-03-17 12:37     ` George Dunlap
2023-03-17 14:54       ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).