summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeemu Ikonen <tpikonen@mailbox.org>2023-12-07 15:37:57 +0200
committerPicca Frédéric-Emmanuel <picca@debian.org>2023-12-08 14:14:29 +0100
commit806c2639ed364f65a05229e1eafa2f6efdad4daf (patch)
tree7345ce939f89d06d5dd3e497bf15919e52736c1d
parent2bc4db599c0ac0dd7d24da6548b96186d789e387 (diff)
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
-rw-r--r--m4/setup_py.m46
1 files 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"])'