File tree 3 files changed +12
-1
lines changed
3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 16
16
__location__ = os .path .join (os .getcwd (), os .path .dirname (
17
17
inspect .getfile (inspect .currentframe ())))
18
18
19
+ # Specific options for RTD build
20
+ on_rtd = os .environ .get ('READTHEDOCS' , None ) == 'True'
21
+
22
+ if on_rtd :
23
+ import pip
24
+ pip .main (['install' , 'statsmodels' ])
25
+
19
26
# If extensions (or modules to document with autodoc) are in another directory,
20
27
# add these directories to sys.path here. If the directory is relative to the
21
28
# documentation root, use os.path.abspath to make it absolute, like shown here.
Original file line number Diff line number Diff line change 2
2
numpy
3
3
scipy
4
4
pandas
5
- statsmodels
Original file line number Diff line number Diff line change 47
47
# Add here console scripts like ['hello_world = pydse.module:function']
48
48
CONSOLE_SCRIPTS = []
49
49
50
+ # temporarily redirect configuration directory
51
+ # to prevent matplotlib import testing for
52
+ # writeable directory outside of sandbox
53
+ os .environ ['MPLCONFIGDIR' ] = "."
54
+
50
55
# Versioneer configuration
51
56
versioneer .versionfile_source = os .path .join (MAIN_PACKAGE , '_version.py' )
52
57
versioneer .versionfile_build = os .path .join (MAIN_PACKAGE , '_version.py' )
You can’t perform that action at this time.
0 commit comments