mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 18:03:50 +00:00
use entry_points for Windows support
This commit is contained in:
parent
595bde2202
commit
355f9fc407
8
setup.py
8
setup.py
@ -36,6 +36,10 @@ for script in scripts:
|
|||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
deps.add("pydivert>=0.0.7") # Transparent proxying on Windows
|
deps.add("pydivert>=0.0.7") # Transparent proxying on Windows
|
||||||
|
|
||||||
|
console_scripts = [
|
||||||
|
"%s = libmproxy.main:%s" % (s, s) for s in scripts
|
||||||
|
]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="mitmproxy",
|
name="mitmproxy",
|
||||||
version=version.VERSION,
|
version=version.VERSION,
|
||||||
@ -65,7 +69,9 @@ setup(
|
|||||||
],
|
],
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
scripts=scripts,
|
entry_points={
|
||||||
|
'console_scripts': console_scripts
|
||||||
|
},
|
||||||
install_requires=list(deps),
|
install_requires=list(deps),
|
||||||
extras_require={
|
extras_require={
|
||||||
'dev': [
|
'dev': [
|
||||||
|
Loading…
Reference in New Issue
Block a user