From 27fe4b06a53e0d3f466832ee5e8ce53fae93d460 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 22 Oct 2021 11:07:27 +0000 Subject: [PATCH] [FIX] Makefile: call pysassc from python module pysassc utility is called in the Makefile. On some system (e.g.: the latest Dockerfile of the runbot) this utility cannot be found in the system's paths. As the pysassc utility is a wrapper for the python module, we can simply call the python module by it's entrypoint. Also, this commit fixes the requirements as the pysass package was installed to incidentally install libsass. closes odoo/documentation#1277 X-original-commit: cbd85f1f47143790fc9e431314c6f3fe601f5eb5 Signed-off-by: Christophe Monniez (moc) --- Makefile | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c06f920fa..36388a436 100644 --- a/Makefile +++ b/Makefile @@ -69,7 +69,7 @@ gettext: $(HTML_BUILD_DIR)/_static/style.css: extensions/odoo_theme/static/style.scss extensions/odoo_theme/static/scss/*.scss @echo "Compiling stylesheets..." mkdir -p $(HTML_BUILD_DIR)/_static - pysassc extensions/odoo_theme/static/style.scss $(HTML_BUILD_DIR)/_static/style.css + python3 -m pysassc extensions/odoo_theme/static/style.scss $(HTML_BUILD_DIR)/_static/style.css @echo "Compilation finished." #=== Development and debugging rules ===# diff --git a/requirements.txt b/requirements.txt index 0c0f03252..edc26a226 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ +libsass==0.18.0 pygments~=2.6.1 pygments-csv-lexer~=0.1 -pysass~=0.1.0 sphinx~=3.0 werkzeug==0.14.1