sodium_grabber_installer.py 519 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. '''
  4. The setup script for sodium_grabber
  5. '''
  6. # pylint: disable=C0111,E1101,E1103,F0401,W0611
  7. from distutils.core import setup, Extension
  8. from os import path
  9. HERE = path.dirname(__file__)
  10. SETUP_KWARGS = {}
  11. sodium_grabber = Extension('sodium_grabber',
  12. sources=[path.join(HERE, 'sodium_grabber.c')],
  13. libraries=['sodium'],
  14. )
  15. SETUP_KWARGS['ext_modules'] = [sodium_grabber]
  16. SETUP_KWARGS['name'] = "sodium_grabber"
  17. if __name__ == '__main__':
  18. setup(**SETUP_KWARGS)