use entry_points for Windows support

This commit is contained in:
Maximilian Hils 2015-02-27 14:43:23 +01:00
parent 595bde2202
commit 355f9fc407

View File

@ -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': [