scipy-lectures / scientific-python-lectures

Tutorial material on the scientific Python ecosystem
https://lectures.scientific-python.org
Other
3.11k stars 1.19k forks source link

Remove distutils #755

Open jarrodmillman opened 6 months ago

jarrodmillman commented 6 months ago

See https://docs.python.org/3.10/library/distutils.html

advanced/advanced_numpy/examples/setup_myobject.py:from distutils.core import setup, Extension
advanced/advanced_numpy/examples/setup.py:from distutils.sysconfig import get_python_inc
advanced/advanced_numpy/examples/setup.py:from numpy.distutils.misc_util import get_numpy_include_dirs
advanced/advanced_numpy/examples/setup.py:    from numpy.distutils.misc_util import Configuration
advanced/advanced_numpy/examples/setup.py:    from numpy.distutils.core import setup
advanced/interfacing_with_c/cython/setup.py:from distutils.core import setup, Extension
advanced/interfacing_with_c/interfacing_with_c.rst:The standard python build system ``distutils`` supports compiling C-extensions
advanced/interfacing_with_c/interfacing_with_c.rst:To compile this we can use distutils again. However we need to be sure to
advanced/interfacing_with_c/interfacing_with_c.rst:And since the library is pure C, we can't use ``distutils`` to compile it, but
advanced/interfacing_with_c/interfacing_with_c.rst:   ``distutils`` knows how to handle SWIG interface files, so that our
advanced/interfacing_with_c/interfacing_with_c.rst:And, as before we can use distutils to wrap this:
advanced/interfacing_with_c/interfacing_with_c.rst:Again we can use the standard ``distutils`` module, but this time we need some
advanced/interfacing_with_c/interfacing_with_c.rst:And can be compiled using ``distutils``:
advanced/interfacing_with_c/python_c_api/setup.py:from distutils.core import setup, Extension
advanced/interfacing_with_c/swig_numpy/setup.py:from distutils.core import setup, Extension
advanced/interfacing_with_c/cython_simple/setup.py:from distutils.core import setup, Extension
advanced/interfacing_with_c/swig/setup.py:from distutils.core import setup, Extension
advanced/interfacing_with_c/numpy_c_api/setup.py:from distutils.core import setup, Extension
advanced/interfacing_with_c/cython_numpy/setup.py:from distutils.core import setup, Extension
stefanv commented 5 months ago

See #769