Trying to protect against the env variable not being present

This commit is contained in:
Jeremy Wright
2022-05-20 11:38:14 -04:00
parent e3a19c4173
commit 44413e5a6d

View File

@ -16,11 +16,14 @@ from setuptools import setup, find_packages
version = "2.1" version = "2.1"
is_rtd = os.environ['READTHEDOCS'] reqs = []
is_rtd = False
if "READTHEDOCS" in os.environ:
is_rtd = os.environ['READTHEDOCS']
print(is_rtd) print(is_rtd)
if is_rtd: if not is_rtd:
reqs = []
else:
reqs = [ reqs = [
"cadquery-ocp", "cadquery-ocp",
"ezdxf", "ezdxf",