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@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
On Friday, 14 January 2022 19:40:29 CET Nir Soffer wrote:
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@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
+1 Vojta
sanlock-devel@lists.fedorahosted.org