Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r56668:0cf0134d39eb
Date: 2012-08-10 00:04 +0200
http://bitbucket.org/pypy/pypy/changeset/0cf0134d39eb/
Log: patch from matkor for PLD and other strange linux distros
diff --git a/pypy/module/_minimal_curses/fficurses.py
b/pypy/module/_minimal_curses/fficurses.py
--- a/pypy/module/_minimal_curses/fficurses.py
+++ b/pypy/module/_minimal_curses/fficurses.py
@@ -9,10 +9,12 @@
from pypy.module._minimal_curses import interp_curses
from pypy.translator.tool.cbuild import ExternalCompilationInfo
from sys import platform
+import os.path
_CYGWIN = platform == 'cygwin'
+_NCURSES_CURSES = os.path.isfile("/usr/include/ncurses/curses.h")
-if _CYGWIN:
+if _CYGWIN or _NCURSES_CURSES:
eci = ExternalCompilationInfo(
includes = ['ncurses/curses.h', 'ncurses/term.h'],
libraries = ['curses'],
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit