lbalhar / rpms / Cython

Forked from rpms/Cython 4 years ago
Clone
Blob Blame History Raw
From 97de55acf4efe3c3ae2b5a955578cae71958dfe7 Mon Sep 17 00:00:00 2001
From: Jeroen Demeyer <jdemeyer@cage.ugent.be>
Date: Sun, 7 Feb 2016 17:07:54 +0100
Subject: [PATCH] Check sys.path for .pxi files too

---
 Cython/Compiler/Main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py
index 65b3cd309..d4d0f788b 100644
--- a/Cython/Compiler/Main.py
+++ b/Cython/Compiler/Main.py
@@ -269,7 +269,7 @@ class Context(object):
         # Search list of include directories for filename.
         # Reports an error and returns None if not found.
         path = self.search_include_directories(filename, "", pos,
-                                               include=True)
+                                               include=True, sys_path=True)
         if not path:
             error(pos, "'%s' not found" % filename)
         return path
-- 
2.11.0