From 32f7cd0e432c884e040ee86de27830930b45e9eb Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Fri, 9 Apr 2010 01:16:43 -0300 Subject: [PATCH] make __init__.pxd properly specify a package directory --HG-- extra : rebase_source : 66f81b93145932d4306fd16a5c2b459557c58038 --- Cython/Compiler/Main.py | 4 +++- Cython/Includes/cpython/__init__.pyx | 1 - Cython/Includes/libc/__init__.pyx | 1 - Cython/Includes/libcpp/__init__.pyx | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 Cython/Includes/cpython/__init__.pyx delete mode 100644 Cython/Includes/libc/__init__.pyx delete mode 100644 Cython/Includes/libcpp/__init__.pyx 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 -- 2.26.2