build Linux executable in its own virtualenv

pull/2330/head
Mike Fährmann 3 years ago
parent 6fdcfa941c
commit c8414c9d95
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -1,5 +1,7 @@
# Changelog
## Unreleased
## 1.20.5 - 2022-02-14
### Additions
- [furaffinity] add `layout` option ([#2277](https://github.com/mikf/gallery-dl/issues/2277))

@ -6,4 +6,4 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.20.5"
__version__ = "1.20.6-dev"

@ -54,7 +54,14 @@ build-linux() {
cd "${ROOTDIR}"
echo Building Linux executable
make executable
VENV_PATH="/tmp/venv"
VENV_PYTHON="${VENV_PATH}/bin/python"
rm -r "${VENV_PATH}"
virtualenv "${VENV_PATH}"
$VENV_PYTHON -m pip install requests requests[socks] yt-dlp pyinstaller
$VENV_PYTHON ./scripts/pyinstaller.py
}
build-windows() {

Loading…
Cancel
Save