Commit fa5ad997 authored by Stefan Behnel's avatar Stefan Behnel Committed by GitHub

Merge pull request #2641 from jdemeyer/language_deprecated

Improve message for deprecated "language=..." option
parents 775fb036 92833576
......@@ -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,
exclude_failures=False):
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:
exclude = []
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