aboutsummaryrefslogtreecommitdiffstats
path: root/wpaspy/setup.py
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-03-01 21:27:56 (GMT)
committerJouni Malinen <j@w1.fi>2013-03-01 21:27:56 (GMT)
commit20da5c8986702831a135b5e3e81d3d4a9c048feb (patch)
tree5464313d2c227cfaf35812b35d90cf118bf0bebf /wpaspy/setup.py
parent77e4e85321a0a1255901914d5de916aba050f9e1 (diff)
downloadhostap-20da5c8986702831a135b5e3e81d3d4a9c048feb.zip
hostap-20da5c8986702831a135b5e3e81d3d4a9c048feb.tar.gz
hostap-20da5c8986702831a135b5e3e81d3d4a9c048feb.tar.bz2
wpaspy: Add Python bindings for wpa_ctrl
This allows Python to be used to control wpa_supplicant/hostapd through the control interface. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpaspy/setup.py')
-rw-r--r--wpaspy/setup.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/wpaspy/setup.py b/wpaspy/setup.py
new file mode 100644
index 0000000..4dbf765
--- /dev/null
+++ b/wpaspy/setup.py
@@ -0,0 +1,22 @@
+#!/usr/bin/python
+#
+# Python bindings for wpa_ctrl (wpa_supplicant/hostapd control interface)
+# Copyright (c) 2013, Jouni Malinen <j@w1.fi>
+#
+# This software may be distributed under the terms of the BSD license.
+# See README for more details.
+
+from distutils.core import setup, Extension
+
+ext = Extension(name = 'wpaspy',
+ sources = ['../src/common/wpa_ctrl.c',
+ '../src/utils/os_unix.c',
+ 'wpaspy.c'],
+ extra_compile_args = ["-I../src/common",
+ "-I../src/utils",
+ "-DCONFIG_CTRL_IFACE",
+ "-DCONFIG_CTRL_IFACE_UNIX"])
+
+setup(name = 'wpaspy',
+ ext_modules = [ext],
+ description = 'Python bindings for wpa_ctrl (wpa_supplicant/hostapd)')