Better error reporting in pyxbuild
authorRobert Bradshaw <robertwb@math.washington.edu>
Tue, 10 Mar 2009 02:46:44 +0000 (19:46 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Tue, 10 Mar 2009 02:46:44 +0000 (19:46 -0700)
pyximport/pyxbuild.py

index 0fb296be9ed8aa7ad93391379f54f0b5b4a5a3f6..80c68b1692d24621270998336fa9daeaf5ad0fa9 100644 (file)
@@ -23,7 +23,7 @@ def pyx_to_dll(filename, ext = None, force_rebuild = 0,
                build_in_temp=False, pyxbuild_dir=None):
     """Compile a PYX file to a DLL and return the name of the generated .so 
        or .dll ."""
-    assert os.path.exists(filename)
+    assert os.path.exists(filename), "Could not find %s" % os.path.abspath(filename)
 
     path, name = os.path.split(filename)