From 7cf0a2ef4b8a87a34f3ddc792d319234bf3b31cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Molinero=20Fern=C3=A1ndez?= <hector@molinero.dev> Date: Wed, 15 Jan 2020 23:36:29 +0100 Subject: [PATCH] Allow installer deactivation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Héctor Molinero Fernández <hector@molinero.dev> --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7abebe8..b6dd2f3 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages +from distutils.util import strtobool import os import glob import shutil @@ -43,7 +44,8 @@ def installer(): os.system("systemctl enable fstrim.timer") -installer() +if strtobool(os.environ.get("PWNAGOTCHI_ENABLE_INSTALLER", "1")): + installer() with open('requirements.txt') as fp: required = [line.strip() for line in fp if line.strip() != ""]