Skip to content
Snippets Groups Projects
Commit a408e1ad authored by Marc-Olivier Andrez's avatar Marc-Olivier Andrez
Browse files

build: replace `distutils` with `setuptools`

This commit makes the build of Python packages use `setuptools` instead
of the deprecated `distutils` in `setup.py` files. See
[PEP 632](https://peps.python.org/pep-0632/) for more information on the
deprecation of `distutils`.

Note that using `setuptools` instead of `distutils` removes the
following user warning messages when creating the `bdist` and `sdist` of
the consumer and producer projects:

```
/usr/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'setup_requires'
  warnings.warn(msg)
/usr/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)
```
parent 3cb6d8bd
No related branches found
No related tags found
No related merge requests found
from distutils.core import setup
from distutils.core import Extension
from setuptools import setup, Extension
import numpy
import os
......
from distutils.core import setup
from distutils.core import Extension
from setuptools import setup, Extension
from Cython.Build import cythonize
......
from distutils.core import setup
from distutils.core import Extension
from setuptools import setup, Extension
import numpy, os
ext_modules = [
......
from distutils.core import setup
from distutils.core import Extension
from setuptools import setup, Extension
from Cython.Build import cythonize
import numpy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment