From: Teemu Ikonen <tpikonen@mailbox.org>
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.
---
 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"])'
