view files/patch-lib__pypy___curses__build.py @ 16:f02a08eefd82

Allow to build some CFFI ports to build again with current PyPy3: the internal PyPy3 directly layout has changed
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 03 Oct 2022 11:37:45 +0200
parents 5797a1bc38cb
children dd6054092884 913b7ccce398
line wrap: on
line source

--- lib_pypy/_curses_build.py.orig	2020-03-25 12:13:59 UTC
+++ lib_pypy/_curses_build.py
@@ -31,6 +31,8 @@ def find_curses_dir_and_name():
             return base, 'ncursesw'
         if os.path.exists(os.path.join(base, 'include', 'ncurses')):
             return base, 'ncurses'
+        if os.path.exists(os.path.join(base, 'lib', 'libncursesw.so')):
+            return base, 'ncursesw'
     return '', None
 
 base, name = find_curses_dir_and_name()