From: Lisandro Dalcin Date: Fri, 9 Apr 2010 04:16:43 +0000 (-0300) Subject: make __init__.pxd properly specify a package directory X-Git-Tag: 0.13.beta0~233^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=32f7cd0e432c884e040ee86de27830930b45e9eb;p=cython.git make __init__.pxd properly specify a package directory --HG-- extra : rebase_source : 66f81b93145932d4306fd16a5c2b459557c58038 --- diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py index a031c5de..5fd6f0de 100644 --- a/Cython/Compiler/Main.py +++ b/Cython/Compiler/Main.py @@ -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 diff --git a/Cython/Includes/cpython/__init__.pyx b/Cython/Includes/cpython/__init__.pyx deleted file mode 100644 index fa81adaf..00000000 --- a/Cython/Includes/cpython/__init__.pyx +++ /dev/null @@ -1 +0,0 @@ -# empty file diff --git a/Cython/Includes/libc/__init__.pyx b/Cython/Includes/libc/__init__.pyx deleted file mode 100644 index fa81adaf..00000000 --- a/Cython/Includes/libc/__init__.pyx +++ /dev/null @@ -1 +0,0 @@ -# empty file diff --git a/Cython/Includes/libcpp/__init__.pyx b/Cython/Includes/libcpp/__init__.pyx deleted file mode 100644 index fa81adaf..00000000 --- a/Cython/Includes/libcpp/__init__.pyx +++ /dev/null @@ -1 +0,0 @@ -# empty file