[setup] improvement: able to install bauh with python/pip without enforcing requirements

This commit is contained in:
Vinicius Moreira
2022-02-10 11:23:15 -03:00
parent e84f88d37d
commit 4ae77312b7
2 changed files with 8 additions and 2 deletions

View File

@@ -14,8 +14,11 @@ URL = "https://github.com/vinifmor/" + NAME
file_dir = os.path.dirname(os.path.abspath(__file__))
with open(file_dir + '/requirements.txt', 'r') as f:
requirements = [line.strip() for line in f.readlines() if line]
if os.getenv('BAUH_SETUP_NO_REQS'):
requirements = []
else:
with open(f'{file_dir}/requirements.txt', 'r') as f:
requirements = [line.strip() for line in f.readlines() if line]
with open(file_dir + '/{}/__init__.py'.format(NAME), 'r') as f: