Skip to content

Commit ddceab1

Browse files
committed
Black formatting and AppVeyor handling
1 parent 44413e5 commit ddceab1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

setup.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@
1818

1919
reqs = []
2020

21+
# ReadTheDocs and AppVeyor will break if we do not handle the separately
2122
is_rtd = False
23+
is_appveyor = False
2224
if "READTHEDOCS" in os.environ:
23-
is_rtd = os.environ['READTHEDOCS']
25+
is_rtd = os.environ["READTHEDOCS"]
26+
if "APPVEYOR" in os.environ:
27+
is_appveyor = os.environ["APPVEYOR"]
2428

25-
print(is_rtd)
26-
if not is_rtd:
29+
# Only include the installation dependencies if we are not running on RTD or AppVeyor
30+
if not is_rtd and not is_appveyor:
2731
reqs = [
2832
"cadquery-ocp",
2933
"ezdxf",

0 commit comments

Comments
 (0)