summaryrefslogtreecommitdiff
path: root/docs/examples/tutorial/cython_tutorial
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2020-03-24 18:00:35 +0000
committerGitHub <noreply@github.com>2020-03-24 19:00:35 +0100
commit8b92bcba349e3ef7d0d8a834c13eedcd02bcb031 (patch)
tree5ac5cc242b3ce12565cf511a971470f9049bb9c3 /docs/examples/tutorial/cython_tutorial
parent315fd42669c7c8b7bd051897854f0e53d44b7494 (diff)
downloadcython-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.py2
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(