From 8e2e2cef074012b3633427f0bc46ed3da2b1558c Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Tue, 14 Mar 2023 21:40:45 +0300 Subject: [PATCH] Build script small fixes --- build.sh | 3 ++- setup.cfg | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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