setup_gpio.py 572B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env python
  2. #
  3. # License: GPLv3
  4. # Author: Kai Lauterbach - me@klaute.de - @kailauterbach
  5. #
  6. """
  7. setup.py file for SWIG gpio
  8. """
  9. from distutils.core import setup, Extension
  10. gpio_module = Extension('_gpio',
  11. include_dirs=['.'],
  12. sources=['gpio_wrap.c', 'gpio_lib.c'],
  13. )
  14. setup (name = 'gpio',
  15. version = '0.1',
  16. author = "klaute",
  17. description = """Simple swig gpio_lib from docs""",
  18. ext_modules = [gpio_module],
  19. py_modules = ["gpio"],
  20. )