make __init__.pxd properly specify a package directory
authorLisandro Dalcin <dalcinl@gmail.com>
Fri, 9 Apr 2010 04:16:43 +0000 (01:16 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Fri, 9 Apr 2010 04:16:43 +0000 (01:16 -0300)
--HG--
extra : rebase_source : 66f81b93145932d4306fd16a5c2b459557c58038

Cython/Compiler/Main.py
Cython/Includes/cpython/__init__.pyx [deleted file]
Cython/Includes/libc/__init__.pyx [deleted file]
Cython/Includes/libcpp/__init__.pyx [deleted file]

index a031c5de16e8d4d181e646cdb7e1393d7ff85bd5..5fd6f0de2c6faa231afd2e14526a034cf17e0420 100644 (file)
@@ -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 (file)
index fa81ada..0000000
+++ /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 (file)
index fa81ada..0000000
+++ /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 (file)
index fa81ada..0000000
+++ /dev/null
@@ -1 +0,0 @@
-# empty file