setup.py 840 B

12345678910111213141516171819202122
  1. #!/usr/bin/python
  2. #
  3. # Python bindings for wpa_ctrl (wpa_supplicant/hostapd control interface)
  4. # Copyright (c) 2013, Jouni Malinen <j@w1.fi>
  5. #
  6. # This software may be distributed under the terms of the BSD license.
  7. # See README for more details.
  8. from distutils.core import setup, Extension
  9. ext = Extension(name = 'wpaspy',
  10. sources = ['../src/common/wpa_ctrl.c',
  11. '../src/utils/os_unix.c',
  12. 'wpaspy.c'],
  13. extra_compile_args = ["-I../src/common",
  14. "-I../src/utils",
  15. "-DCONFIG_CTRL_IFACE",
  16. "-DCONFIG_CTRL_IFACE_UNIX"])
  17. setup(name = 'wpaspy',
  18. ext_modules = [ext],
  19. description = 'Python bindings for wpa_ctrl (wpa_supplicant/hostapd)')