setup.py 588 B

1234567891011121314151617181920212223
  1. # Copyright (c) Twisted Matrix Laboratories.
  2. # See LICENSE for details.
  3. """
  4. Distutils file for building low-level IOCP bindings from their Pyrex source
  5. """
  6. from distutils.core import setup
  7. from distutils.extension import Extension
  8. from Cython.Distutils import build_ext
  9. setup(name='iocpsupport',
  10. ext_modules=[Extension('iocpsupport',
  11. ['iocpsupport/iocpsupport.pyx',
  12. 'iocpsupport/winsock_pointers.c'],
  13. libraries = ['ws2_32'],
  14. )
  15. ],
  16. cmdclass = {'build_ext': build_ext},
  17. )