[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:
		
							parent
							
								
									620b070002
								
							
						
					
					
						commit
						00aa8876d6
					
				|  | @ -28,7 +28,7 @@ def make_module_from_c(cfile): | ||||||
|         if filetype == imp.C_EXTENSION: |         if filetype == imp.C_EXTENSION: | ||||||
|             break |             break | ||||||
|     else: |     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) |     lib = dirpath.join(modname+ext) | ||||||
| 
 | 
 | ||||||
|     # argl! we need better "build"-locations alltogether! |     # argl! we need better "build"-locations alltogether! | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue