Updated through tag hostap_2_5 from git://w1.fi/hostap.git
[mech_eap.git] / libeap / wpaspy / setup.py
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
9 from distutils.core import setup, Extension
10
11 ext = Extension(name = 'wpaspy',
12                 sources = ['../src/common/wpa_ctrl.c',
13                            '../src/utils/os_unix.c',
14                            'wpaspy.c'],
15                 extra_compile_args = ["-I../src/common",
16                                       "-I../src/utils",
17                                       "-DCONFIG_CTRL_IFACE",
18                                       "-DCONFIG_CTRL_IFACE_UNIX"])
19
20 setup(name = 'wpaspy',
21       ext_modules = [ext],
22       description = 'Python bindings for wpa_ctrl (wpa_supplicant/hostapd)')