Hi, Robert Bradshaw wrote: > On Jun 18, 2008, at 7:41 PM, Brian Granger wrote: >> I now have the following approach working with my project: >> >> I call cython from the top-level dir (the one containing setup.py): >> >> cython -I. distarray/core/maps_fast.pyx >> >> And this works fine. I can run with this approach and some ways it is >> nicer for situations like this. But I still think cython should first >> look in the directory containing the pyx file first. >> > Yes, I agree.
Note that this might break module name detection, though. What I could imagine as a solution is this: - Determine the package path to the currently compiled module by searching __init__.py files (just as it's done now) - Then add the top-level directory of this search to the import path automatically. That also solves the "add . automatically" problem, by the way. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
