Commit 32f7cd0e authored by Lisandro Dalcin's avatar Lisandro Dalcin

make __init__.pxd properly specify a package directory

--HG--
extra : rebase_source : 66f81b93145932d4306fd16a5c2b459557c58038
parent e1d01bec
......@@ -417,7 +417,9 @@ class Context(object):
def is_package_dir(self, dir_path):
# Return true if the given directory is a package directory.
for filename in ("__init__.py", "__init__.pyx"):
for filename in ("__init__.py",
"__init__.pyx",
"__init__.pxd"):
path = os.path.join(dir_path, filename)
if os.path.exists(path):
return 1
......
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