-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
55 lines (54 loc) · 2.21 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from setuptools import setup, Extension, find_packages
setup(name='pywintunx-pmd3',
author='unknown',
author_email='[email protected]',
maintainer='unknown',
maintainer_email='[email protected]',
url='https://github.com/unknown/wintun',
description='wintun (WireGuard) wrapper for Python',
long_description=open('PyReadMe.rst').read(),
version='1.0.2',
packages=find_packages(),
requires=['click', 'pyuac'],
ext_modules=[
Extension('pywintunx_pmd3', sources=[
'api/pybinding.c',
'api/resource.c',
'api/resources.rc'
],
define_macros=[
('WITH_PYTHON', 1),
('MONOLITHIC_BUILD', 1),
('WINTUN_VERSION_MAJ', '0'),
('WINTUN_VERSION_MIN', '14'),
('WINTUN_VERSION_REL', '1')
],
extra_link_args=[
"/DYNAMICBASE",
"Cfgmgr32.lib",
"Iphlpapi.lib",
"onecore.lib",
"version.lib",
"delayimp.lib",
"swdevice.lib",
"ntdll.lib",
"api/nci.lib",
"/DELAYLOAD:advapi32.dll",
"/DELAYLOAD:shell32.dll",
"/DELAYLOAD:api-ms-win-devices-query-l1-1-0.dll",
"/DELAYLOAD:api-ms-win-devices-swdevice-l1-1-0.dll",
"/DELAYLOAD:cfgmgr32.dll",
"/DELAYLOAD:iphlpapi.dll",
"/DELAYLOAD:nci.dll",
])
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Programming Language :: C',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Networking'])