[sanlock] branch master updated: python: Replace distutils with
setuptools
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
nsoffer pushed a commit to branch master
in repository sanlock.
The following commit(s) were added to refs/heads/master by this push:
new 75758fc python: Replace distutils with setuptools
75758fc is described below
commit 75758fc10db2354dda397d3aba63c7b72a420982
Author: Nir Soffer <nsoffer(a)redhat.com>
AuthorDate: Fri Jan 14 20:27:35 2022 +0200
python: Replace distutils with setuptools
distutils is deprecated since python 3.10 with removal planned for
Python 3.12. The recommended replacement is setuptools.
https://docs.python.org/3.10/library/distutils.html
Fixes #6
Thanks: Ross Burton
Signed-off-by: Nir Soffer <nsoffer(a)redhat.com>
---
python/setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/setup.py b/python/setup.py
index b3bfaf1..dfbaf21 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -4,7 +4,7 @@
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
-from distutils.core import setup, Extension
+from setuptools import setup, Extension
sanlocklib = ['sanlock']
sanlock = Extension(name='sanlock',
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
1 year, 10 months
[PATCH] python: Replace distutils with setuptools
by Nir Soffer
distutils is deprecated since python 3.10 with removal planned for
Python 3.12. The recommended replacement is setuptools.
https://docs.python.org/3.10/library/distutils.html
Fixes #6
Thanks: Ross Burton
Signed-off-by: Nir Soffer <nsoffer(a)redhat.com>
---
python/setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/setup.py b/python/setup.py
index b3bfaf1..dfbaf21 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -1,17 +1,17 @@
# Copyright 2010-2019 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
-from distutils.core import setup, Extension
+from setuptools import setup, Extension
sanlocklib = ['sanlock']
sanlock = Extension(name='sanlock',
sources=['sanlock.c'],
include_dirs=['../src'],
library_dirs=['../src'],
extra_compile_args=["-std=c99"],
libraries=sanlocklib)
version = None
--
2.34.1
1 year, 10 months