diff --git a/build.sh b/build.sh index 776ae4d..cce8329 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,5 @@ #!/bin/bash python -m pip install . --target torparse find torparse -path '*/__pycache__*' -delete -python -m zipapp -m "tor_relay_scanner.scanner:main" -c torparse +cp torparse/tor_relay_scanner/__main__.py torparse/ +python -m zipapp -c -p '/usr/bin/env python3' torparse diff --git a/setup.cfg b/setup.cfg index 092b68d..d631cfd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -20,7 +20,8 @@ packages = find: python_requires = >=3.7 #install_requires = requests[socks] install_requires = - requests[socks] @ https://github.com/psf/requests/archive/8c86fb111b955ea76439199821973c40a70a19a2.zip + requests[socks]@https://github.com/psf/requests/archive/8c86fb111b955ea76439199821973c40a70a19a2.zip ;platform_system=='Windows' + requests[socks] ;platform_system!='Windows' [options.packages.find] where = src