Commit 5ae0b7cc authored by Robert Bradshaw's avatar Robert Bradshaw Committed by GitHub

Prohibit naming a module cython.

This causes the compiler to get confused and reuse the magic `cimport cython` module. See #2057.
parent 7210462c
......@@ -786,6 +786,9 @@ def create_extension_list(patterns, exclude=None, ctx=None, aliases=None, quiet=
name, module_name, file))
module_name = name
if module_name == 'cython':
raise ValueError('cython is a special module, cannot be used as a module name')
if module_name not in seen:
try:
kwds = deps.distutils_info(file, aliases, base).values
......
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