From 9a104364501e193f2dfb06165476aea77674f1f1 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 13 Nov 2022 16:46:26 +0100 Subject: [PATCH] rm pip install zopfli --- pio-tools/gzip-firmware.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pio-tools/gzip-firmware.py b/pio-tools/gzip-firmware.py index 26a00abe8..90e7f80d6 100644 --- a/pio-tools/gzip-firmware.py +++ b/pio-tools/gzip-firmware.py @@ -3,14 +3,6 @@ import os import shutil import pathlib import tasmotapiolib - -# Upgrade pip -env.Execute("$PYTHONEXE -m pip install --upgrade pip") -# Install zopfli gz compressor from the PyPi registry -env.Execute("$PYTHONEXE -m pip install zopfli") - -# Import zoepfli compress -from zopfli.gzip import compress import gzip def map_gzip(source, target, env): @@ -39,7 +31,7 @@ if not tasmotapiolib.is_env_set(tasmotapiolib.DISABLE_MAP_GZ, env): # gzip only for ESP8266 if env["PIOPLATFORM"] != "espressif32": - + from zopfli.gzip import compress def bin_gzip(source, target, env): # create string with location and file names based on variant bin_file = tasmotapiolib.get_final_bin_path(env)