Skip to content

Commit 18f2842

Browse files
committed
Fix setup.py
1 parent 50f91e7 commit 18f2842

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

setup.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@
3434
"matplotlib>=2.2",
3535
]
3636

37-
# because RTD runs out of memory when using `pip install -e .[rtd]` to install
38-
# docs dependencies for some reason
39-
with open(".build_tools/readthedocs/requirements.txt", "r") as reqs:
40-
rtd_requires = [line.strip() for line in reqs.readlines()]
37+
# using a requirements.txt file for RTD dependencies
38+
# since it runs out of memory when using `pip install -e .[rtd]` to install
39+
# the dependencies for some reason
40+
try:
41+
with open(".build_tools/readthedocs/requirements.txt", "r") as reqs:
42+
rtd_requires = [line.strip() for line in reqs.readlines()]
43+
except FileNotFoundError:
44+
rtd_requires = []
4145

4246
doc_requires = rtd_requires + ["sphinx_rtd_theme>=0.4.1", "sphinx-autobuild>=0.7.1"]
4347

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ ignore =
101101

102102
max-complexity = 15
103103
exclude =
104+
.tox,
104105
.git,
105106
__pycache__,
106107
build,

0 commit comments

Comments
 (0)