patch-setup_py 1.3 KB

1234567891011121314151617181920212223
  1. $OpenBSD: patch-setup_py,v 1.1 2016/12/26 19:40:12 rpointel Exp $
  2. --- setup.py.orig Fri Dec 23 03:21:22 2016
  3. +++ setup.py Fri Dec 23 12:08:09 2016
  4. @@ -786,6 +786,8 @@ class PyBuildExt(build_ext):
  5. 'termcap'):
  6. readline_libs.append('termcap')
  7. exts.append( Extension('readline', ['readline.c'],
  8. + extra_compile_args=['-nostdinc'],
  9. + include_dirs=['/usr/include'],
  10. library_dirs=['/usr/lib/termcap'],
  11. extra_link_args=readline_extra_link_args,
  12. libraries=readline_libs) )
  13. @@ -1782,8 +1784,7 @@ class PyBuildExt(build_ext):
  14. # The versions with dots are used on Unix, and the versions without
  15. # dots on Windows, for detection by cygwin.
  16. tcllib = tklib = tcl_includes = tk_includes = None
  17. - for version in ['8.6', '86', '8.5', '85', '8.4', '84', '8.3', '83',
  18. - '8.2', '82', '8.1', '81', '8.0', '80']:
  19. + for version in ['85']:
  20. tklib = self.compiler.find_library_file(lib_dirs,
  21. 'tk' + version)
  22. tcllib = self.compiler.find_library_file(lib_dirs,