Allow installer deactivation

Signed-off-by: Héctor Molinero Fernández <hector@molinero.dev>
This commit is contained in:
Héctor Molinero Fernández 2020-01-15 23:36:29 +01:00
parent 52015014b4
commit 7cf0a2ef4b

View File

@ -1,6 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from setuptools import setup, find_packages from setuptools import setup, find_packages
from distutils.util import strtobool
import os import os
import glob import glob
import shutil import shutil
@ -43,7 +44,8 @@ def installer():
os.system("systemctl enable fstrim.timer") os.system("systemctl enable fstrim.timer")
installer() if strtobool(os.environ.get("PWNAGOTCHI_ENABLE_INSTALLER", "1")):
installer()
with open('requirements.txt') as fp: with open('requirements.txt') as fp:
required = [line.strip() for line in fp if line.strip() != ""] required = [line.strip() for line in fp if line.strip() != ""]