Skip to content

Commit a490b4b

Browse files
authored
Fix dead setuptools links (#22)
* Fix dead setuptools links * More comprehensive phrasing re distutils * Link to top of document
1 parent 41fa912 commit a490b4b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/source/cdef.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ In order of complexity:
8080

8181
* Finally, you can (but don't have to) use CFFI's **Distutils** or
8282
**Setuptools integration** when writing a ``setup.py``. For
83-
Distutils (only in out-of-line API mode):
83+
Distutils (only in out-of-line API mode; deprecated since
84+
Python 3.10):
8485

8586
.. code-block:: python
8687
@@ -94,7 +95,7 @@ In order of complexity:
9495
ext_modules=[foo_build.ffibuilder.distutils_extension()],
9596
)
9697
97-
For Setuptools (out-of-line, but works in ABI or API mode;
98+
For Setuptools (out-of-line only, but works in ABI or API mode;
9899
recommended):
99100

100101
.. code-block:: python
@@ -431,9 +432,9 @@ list of extra .c files compiled and linked together (the file
431432
first argument to ``sources``). See the distutils documentations for
432433
`more information about the other arguments`__.
433434

434-
.. __: http://docs.python.org/distutils/setupscript.html#library-options
435-
.. _distutils: http://docs.python.org/distutils/setupscript.html#describing-extension-modules
436-
.. _setuptools: https://pythonhosted.org/setuptools/setuptools.html
435+
.. __: https://setuptools.pypa.io/en/stable/userguide/ext_modules.html#building-extension-modules
436+
.. _distutils: http://docs.python.org/3.11/distutils/setupscript.html#describing-extension-modules
437+
.. _setuptools: https://setuptools.pypa.io/
437438

438439
An extra keyword argument processed internally is
439440
``source_extension``, defaulting to ``".c"``. The file generated will

0 commit comments

Comments
 (0)