1. cbjadwani
  2. pypy

Commits

Maciej Fijalkowski  committed 0cf0134 Draft

patch from matkor for PLD and other strange linux distros

  • Participants
  • Parent commits c5bf753
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/_minimal_curses/fficurses.py

View file
 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'],