Skip to content

Commit 04bfc38

Browse files
winstonawsChoiByungWook
authored andcommitted
Use Conda for ReadTheDocs build to install numpy/scipy (#150)
1 parent a6ec6e4 commit 04bfc38

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.rtd-environment.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Conda environment file used by our custom ReadTheDocs environment.
2+
3+
name: sagemaker
4+
5+
dependencies:
6+
- python>=3
7+
- numpy
8+
- scipy

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def __getattr__(cls, name):
1616

1717
MOCK_MODULES = ['tensorflow', 'tensorflow.core', 'tensorflow.core.framework', 'tensorflow.python',
1818
'tensorflow.python.framework', 'tensorflow_serving', 'tensorflow_serving.apis',
19-
'numpy', 'scipy']
19+
'numpy', 'scipy', 'scipy.sparse']
2020
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
2121

2222
version = '1.2.2'

readthedocs.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ReadTheDocs environment customization to allow us to use conda to install
2+
# libraries which have C dependencies for the doc build. See:
3+
# http://docs.readthedocs.io/en/latest/yaml-config.html
4+
5+
conda:
6+
file: .rtd-environment.yml
7+
8+
python:
9+
setup_py_install: true

0 commit comments

Comments
 (0)