diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2020-03-24 18:00:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 19:00:35 +0100 |
commit | 8b92bcba349e3ef7d0d8a834c13eedcd02bcb031 (patch) | |
tree | 5ac5cc242b3ce12565cf511a971470f9049bb9c3 /docs/examples/tutorial/cython_tutorial | |
parent | 315fd42669c7c8b7bd051897854f0e53d44b7494 (diff) | |
download | cython-8b92bcba349e3ef7d0d8a834c13eedcd02bcb031.tar.gz |
In the documentation, update references to point at `setuptools`. (GH-3456)
While the directives in the source files are still called `distutils`, the [Python upstream documentation](https://docs.python.org/3/library/distutils.html) does not
recommend using distutils anymore, and rather points at setuptools, so avoid confusing new users by providing confusing legacy usage examples.
Also, this corrects one example in which Extension is imported too late, and would cause annoying errors when running `setup.py`.
Diffstat (limited to 'docs/examples/tutorial/cython_tutorial')
-rw-r--r-- | docs/examples/tutorial/cython_tutorial/setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/tutorial/cython_tutorial/setup.py b/docs/examples/tutorial/cython_tutorial/setup.py index 302a08e5f..45941a33c 100644 --- a/docs/examples/tutorial/cython_tutorial/setup.py +++ b/docs/examples/tutorial/cython_tutorial/setup.py @@ -1,4 +1,4 @@ -from distutils.core import setup +from setuptools import setup from Cython.Build import cythonize setup( |