1
0

sodium_grabber_installer.py 524 B

123456789101112131415161718192021222324
  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 Extension, setup
  8. from os import path
  9. HERE = path.dirname(__file__)
  10. SETUP_KWARGS = {}
  11. sodium_grabber = Extension(
  12. "sodium_grabber",
  13. sources=[path.join(HERE, "sodium_grabber.c")],
  14. libraries=["sodium"],
  15. )
  16. SETUP_KWARGS["ext_modules"] = [sodium_grabber]
  17. SETUP_KWARGS["name"] = "sodium_grabber"
  18. if __name__ == "__main__":
  19. setup(**SETUP_KWARGS)