Skip to content

Commit d8f57ac

Browse files
committed
Fix of the setup.py extension filename checker
1 parent 15b759c commit d8f57ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ def glob_cfiles(path, excludes):
274274
raise BuildError("User Modules are only allowed one Cython .pyx file")
275275

276276
filename_string = user_sources[0].split('/')[-1][:-4]
277-
if filename_string is not module_name:
277+
if filename_string != module_name:
278+
print(filename_string, module_name)
278279
raise BuildError("The Cython source file in {} must match the folder name - i.e. it must be {}.pyx".format(module_name, module_name))
279280
cfilename = filename_string + '.c'
280281
print(cfilename)

0 commit comments

Comments
 (0)