Skip to content

Commit e3a19c4

Browse files
committed
Trying to use the RTD env varaible to limit the dependencies
1 parent 433d5bf commit e3a19c4

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

setup.py

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,22 @@
1616

1717
version = "2.1"
1818

19+
is_rtd = os.environ['READTHEDOCS']
20+
print(is_rtd)
21+
if is_rtd:
22+
reqs = []
23+
else:
24+
reqs = [
25+
"cadquery-ocp",
26+
"ezdxf",
27+
"multimethod",
28+
"nlopt",
29+
"nptyping>=2",
30+
"typish",
31+
"casadi",
32+
"path",
33+
]
34+
1935
setup(
2036
name="cadquery",
2137
version=version,
@@ -27,16 +43,7 @@
2743
long_description=open("README.md").read(),
2844
packages=find_packages(exclude=("tests",)),
2945
python_requires=">=3.8,<3.11",
30-
install_requires=[
31-
"cadquery-ocp",
32-
"ezdxf",
33-
"multimethod",
34-
"nlopt",
35-
"nptyping>=2",
36-
"typish",
37-
"casadi",
38-
"path",
39-
],
46+
install_requires=reqs,
4047
extras_require={
4148
"dev": ["docutils", "ipython", "pytest", "black==19.10b0", "click==8.0.4",],
4249
"ipython": ["ipython",],

0 commit comments

Comments
 (0)