[pypy-svn] r55350 - pypy/branch/build-external/pypy/translator/c

afa at codespeak.net afa at codespeak.net
Wed May 28 15:44:58 CEST 2008


Author: afa
Date: Wed May 28 15:44:56 2008
New Revision: 55350

Modified:
   pypy/branch/build-external/pypy/translator/c/genc.py
Log:
Allow some paths to be instances of py.path.localpath 


Modified: pypy/branch/build-external/pypy/translator/c/genc.py
==============================================================================
--- pypy/branch/build-external/pypy/translator/c/genc.py	(original)
+++ pypy/branch/build-external/pypy/translator/c/genc.py	Wed May 28 15:44:56 2008
@@ -421,11 +421,11 @@
                 return os.path.join('$(PYPYDIR)', rel)
             else:
                 return path
-        args = ['-l'+libname for libname in self.eci.libraries]
+        args = ['-l'+str(libname) for libname in self.eci.libraries]
         print >> f, 'LIBS =', ' '.join(args)
-        args = ['-L'+makerel(path) for path in self.eci.library_dirs]
+        args = ['-L'+str(makerel(path)) for path in self.eci.library_dirs]
         print >> f, 'LIBDIRS =', ' '.join(args)
-        args = ['-I'+makerel(path) for path in self.eci.include_dirs]
+        args = ['-I'+str(makerel(path)) for path in self.eci.include_dirs]
         write_list(args, 'INCLUDEDIRS =')
         print >> f
         print >> f, 'CFLAGS  =', ' '.join(compiler.compile_extra)



More information about the Pypy-commit mailing list