mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
[setup] improvement: able to install bauh with python/pip without enforcing requirements
This commit is contained in:
@@ -11,6 +11,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- preventing AUR's installed packages from not being mapped in cases the communication with the API fails
|
||||
- code refactoring (String formatting method)
|
||||
|
||||
- Setup
|
||||
- able to install bauh with python/pip without enforcing requirements through the environment variable `BAUH_SETUP_NO_REQS=1`
|
||||
|
||||
### Fixes
|
||||
- Arch
|
||||
- silent crash when handling and displaying transaction sub-status
|
||||
|
||||
7
setup.py
7
setup.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user