-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
69 lines (60 loc) · 2.15 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
from setuptools import setup
from setuptools.extension import Extension
class Pybind11Include:
"""
Helper class to determine the pybind11 include path
The purpose of this class is to postpone importing pybind11
until it is actually installed, so that the get_include()
method can be invoked.
"""
def __str__(self):
import pybind11
return pybind11.get_include()
with open('README.md', 'r', encoding='utf-8') as file:
long_description = file.read()
setup(
name='sysproxy',
version='0.1.4',
license='MIT',
description='Python bindings for shadowsocks sysproxy utility.',
long_description=long_description,
long_description_content_type='text/markdown',
author='Loren Eteval',
author_email='[email protected]',
url='https://github.com/LorenEteval/sysproxy',
# https://pybind11.readthedocs.io/en/stable/changelog.html#version-2-13-0-june-25-2024
# For Python 3.6 support
setup_requires=['pybind11 < 2.13.0'],
install_requires=['pybind11 < 2.13.0'],
ext_modules=[
Extension(
'sysproxy',
['sysproxy.cpp'],
language='c++11',
include_dirs=[
# Path to pybind11 headers
Pybind11Include(),
],
define_macros=[('UNICODE', None), ('_UNICODE', None)],
libraries=['Wininet', 'rasapi32', 'user32'],
)
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Programming Language :: C++',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Operating System :: Microsoft :: Windows',
'Topic :: Internet',
'Topic :: Internet :: Proxy Servers',
],
zip_safe=False,
)