Skip to content

Commit

Permalink
Fix distutils sources syntax (#5966)
Browse files Browse the repository at this point in the history
The example raised the following error while cythonising.
error: unknown file type '.c,'
It looks like the correct syntax is either without the comma or with brackets around.
  • Loading branch information
gentlegiantJGC committed Jan 31, 2024
1 parent a6cef74 commit 71d1dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/userguide/source_files_and_compilation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ If you have some C files that have been wrapped with Cython and you want to
compile them into your extension, you can define the setuptools ``sources``
parameter::

# distutils: sources = helper.c, another_helper.c
# distutils: sources = [helper.c, another_helper.c]

Note that these sources are added to the list of sources of the current
extension module. Spelling this out in the :file:`setup.py` file looks
Expand Down

0 comments on commit 71d1dc3

Please sign in to comment.