diff options
author | Teemu Ikonen <tpikonen@mailbox.org> | 2023-12-07 15:37:57 +0200 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@debian.org> | 2023-12-08 14:14:29 +0100 |
commit | 806c2639ed364f65a05229e1eafa2f6efdad4daf (patch) | |
tree | 7345ce939f89d06d5dd3e497bf15919e52736c1d | |
parent | 2bc4db599c0ac0dd7d24da6548b96186d789e387 (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.m4 | 6 |
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"])' |