Skip to content

Commit e6371c6

Browse files
authored
Update (#3)
* update to make useable again * clean up * fix build test?
1 parent 2c77d02 commit e6371c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
from setuptools import setup
33
from os.path import abspath, dirname, join, isfile, isdir
4-
from os import walk
4+
from os import walk, environ
55

66
# Define package information
77
SKILL_CLAZZ = "EnclosureControlSkill" # Make sure it matches __init__.py class name
@@ -27,7 +27,7 @@ def get_requirements(requirements_filename: str = "requirements.txt"):
2727
with open(requirements_file, 'r', encoding='utf-8') as r:
2828
requirements = r.readlines()
2929
requirements = [r.strip() for r in requirements if r.strip() and not r.strip().startswith("#")]
30-
if 'MYCROFT_LOOSE_REQUIREMENTS' in os.environ:
30+
if 'MYCROFT_LOOSE_REQUIREMENTS' in environ:
3131
print('USING LOOSE REQUIREMENTS!')
3232
requirements = [r.replace('==', '>=').replace('~=', '>=') for r in requirements]
3333
return requirements

0 commit comments

Comments
 (0)