Skip to content

Commit 9c4dc21

Browse files
committed
MAINT: refactor doc build to use installed nipy
Makefile was using PYTHONPATH to pick up nipy source; we can use in-place build for that use - just pick up the installed nipy. Also - check in-place build.
1 parent 6a495ae commit 9c4dc21

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ matrix:
6666
- python: 3.5
6767
env:
6868
- INSTALL_TYPE=setup
69+
- python: 3.5
70+
env:
71+
- INSTALL_TYPE="pip_e"
6972
- python: 3.5
7073
env:
7174
- DOC_BUILD=1
@@ -97,9 +100,11 @@ before_install:
97100
install:
98101
- |
99102
if [ "$INSTALL_TYPE" == "pip" ]; then
100-
pip install .
103+
pip install .
104+
elif [ "$INSTALL_TYPE" == "pip_e" ]; then
105+
pip install -e .
101106
elif [ "$INSTALL_TYPE" == "setup" ]; then
102-
python setup.py install
107+
python setup.py install
103108
elif [ "$INSTALL_TYPE" == "sdist" ]; then
104109
python setup_egg.py egg_info # check egg_info while we're here
105110
python setup_egg.py sdist

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ $(WWW_DIR):
111111
if [ ! -d $(WWW_DIR) ]; then mkdir -p $(WWW_DIR); fi
112112

113113
htmldoc:
114-
cd $(DOCSRC_DIR) && PYTHONPATH=$(CURDIR):$(PYTHONPATH) $(MAKE) html
114+
cd $(DOCSRC_DIR) && $(MAKE) html
115115

116116
pdfdoc:
117-
cd $(DOCSRC_DIR) && PYTHONPATH=$(CURDIR):$(PYTHONPATH) $(MAKE) latex
117+
cd $(DOCSRC_DIR) && $(MAKE) latex
118118
cd $(LATEX_DIR) && $(MAKE) all-pdf
119119

120120
html: html-stamp

0 commit comments

Comments
 (0)