[pypy-commit] pypy compile_ncurses_tcl_tk_suse_latest: lib_pypy: Add /usr/include path and fix superfluous space to tk and ncurses build scripts.

jose...@gmail.com pypy.commits at gmail.com
Tue Sep 10 01:59:34 EDT 2019


Author: joserubiovidales at gmail.com
Branch: compile_ncurses_tcl_tk_suse_latest
Changeset: r97410:1575e31d4fef
Date: 2019-09-09 14:53 +0200
http://bitbucket.org/pypy/pypy/changeset/1575e31d4fef/

Log:	lib_pypy: Add /usr/include path and fix superfluous space to tk and
	ncurses build scripts.

diff --git a/lib_pypy/_curses_build.py b/lib_pypy/_curses_build.py
--- a/lib_pypy/_curses_build.py
+++ b/lib_pypy/_curses_build.py
@@ -5,7 +5,7 @@
 # located at /usr/include/ncurses, so we must check this case.
 # Let's iterate over well known paths
 incdirs =  []
-for _path in ['/usr/include/ncurses']:
+for _path in ['/usr/include', '/usr/include/ncurses']:
     if os.path.isfile(os.path.join(_path, 'panel.h')):
         incdirs.append(_path)
         break
diff --git a/lib_pypy/_tkinter/tklib_build.py b/lib_pypy/_tkinter/tklib_build.py
--- a/lib_pypy/_tkinter/tklib_build.py
+++ b/lib_pypy/_tkinter/tklib_build.py
@@ -36,7 +36,7 @@
         for _ver in ['8.6', '8.5', '']:
             incdirs = []
             linklibs = ['tcl' + _ver, 'tk' + _ver]
-            for lib in ['/usr/lib/lib', '/usr/lib64/lib' ]: 
+            for lib in ['/usr/lib/lib', '/usr/lib64/lib']: 
                 if os.path.isfile(''.join([ lib, linklibs[1], '.so'])):
                     found = True
                     break


More information about the pypy-commit mailing list