Commit 92833576 authored by Jeroen Demeyer's avatar Jeroen Demeyer

Improve message for deprecated "language=..." option

parent d1cf2648
...@@ -734,7 +734,8 @@ def default_create_extension(template, kwds): ...@@ -734,7 +734,8 @@ def default_create_extension(template, kwds):
def create_extension_list(patterns, exclude=None, ctx=None, aliases=None, quiet=False, language=None, def create_extension_list(patterns, exclude=None, ctx=None, aliases=None, quiet=False, language=None,
exclude_failures=False): exclude_failures=False):
if language is not None: if language is not None:
print('Please put "# distutils: language=%s" in your .pyx or .pxd file(s)' % language) print('Warning: passing language={0!r} to cythonize() is deprecated. '
'Instead, put "# distutils: language={0}" in your .pyx or .pxd file(s)'.format(language))
if exclude is None: if exclude is None:
exclude = [] exclude = []
if patterns is None: if patterns is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment