[svn r38597] Raise an ImportError if there is no way to build a C extension module,

e.g. on top of pypy-c.  Importing e.g. py.magic.greenlet then gives an
exception that is saner to catch than ValueError.

--HG--
branch : trunk
This commit is contained in:
arigo 2007-02-12 17:49:32 +01:00
parent 620b070002
commit 00aa8876d6
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ def make_module_from_c(cfile):
if filetype == imp.C_EXTENSION:
break
else:
raise ValueError, "cannot find the file name suffix of C ext modules"
raise ImportError, "cannot find the file name suffix of C ext modules"
lib = dirpath.join(modname+ext)
# argl! we need better "build"-locations alltogether!