patch-setup_py 513 B

123456789101112131415
  1. $OpenBSD: patch-setup_py,v 1.1 2016/09/14 20:40:53 rpointel Exp $
  2. --- setup.py.orig Thu Aug 11 14:22:08 2016
  3. +++ setup.py Thu Aug 11 14:31:24 2016
  4. @@ -122,6 +122,10 @@ class BuildCommand(build):
  5. else:
  6. building_for_osx = False
  7. + if 'openbsd' in self.plat_name:
  8. + module.include_dirs.append('${LOCALBASE}/include')
  9. + module.library_dirs.append('${LOCALBASE}/lib')
  10. +
  11. if has_function('memmem'):
  12. module.define_macros.append(('HAVE_MEMMEM', '1'))
  13. if has_function('strlcpy'):