rm pip install zopfli

This commit is contained in:
Jason2866 2022-11-13 16:46:26 +01:00 committed by GitHub
parent b2239b4dce
commit 9a10436450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 9 deletions

View File

@ -3,14 +3,6 @@ import os
import shutil import shutil
import pathlib import pathlib
import tasmotapiolib 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 import gzip
def map_gzip(source, target, env): 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 # gzip only for ESP8266
if env["PIOPLATFORM"] != "espressif32": if env["PIOPLATFORM"] != "espressif32":
from zopfli.gzip import compress
def bin_gzip(source, target, env): def bin_gzip(source, target, env):
# create string with location and file names based on variant # create string with location and file names based on variant
bin_file = tasmotapiolib.get_final_bin_path(env) bin_file = tasmotapiolib.get_final_bin_path(env)