From 806c2639ed364f65a05229e1eafa2f6efdad4daf Mon Sep 17 00:00:00 2001 From: Teemu Ikonen Date: Thu, 7 Dec 2023 15:37:57 +0200 Subject: setup_py.m4: Use setuptools, change to acceptable module name Change to setuptools, since distutils is deprecated. Use 'pycbf' as module name in setup() call, names starting with an underscore (like '_pycbf') are not accepted by setuptools. Gbp-Pq: Name 0018-setup_py.m4-Use-setuptools-change-to-acceptable-modu.patch --- m4/setup_py.m4 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/m4/setup_py.m4 b/m4/setup_py.m4 index ca606c5..d525cff 100644 --- a/m4/setup_py.m4 +++ b/m4/setup_py.m4 @@ -4,7 +4,7 @@ `# Import the things to build python binary extensions -from distutils.core import setup, Extension +from setuptools import setup, Extension # Make our extension module @@ -17,4 +17,6 @@ e = Extension(''`_pycbf''`, include_dirs = ["../include","'hdf5_prefix`/include"]) # Build it -setup(name="_pycbf",ext_modules=[e],py_modules = ["pycbf"])' +setup(name="pycbf", + ext_modules=[e], + py_modules = ["pycbf"])' -- cgit v1.2.3