Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42cce3c

Browse files
committed
Simplifying install, cloning out of repo to avoid sphinx to search in cpython sources.
1 parent 4a344f8 commit 42cce3c

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: python
22
python: 3.6
3-
install:
4-
- git clone --depth 1 --branch 3.7 https://github.com/python/cpython.git
3+
install: true
54
script:
6-
- make CPYTHON_CLONE=cpython BRANCH=3.7
5+
- make CPYTHON_CLONE=/tmp/cpython/ BRANCH=3.7

Makefile

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,15 @@ JOBS = 4
2424

2525

2626
.PHONY: all
27-
all: $(VENV)/bin/sphinx-build $(VENV)/bin/blurb $(SPHINX_CONF)
27+
all: $(SPHINX_CONF)
2828
mkdir -p $(CPYTHON_CLONE)/Doc/locales/$(LANGUAGE)/
2929
ln -nfs $(shell readlink -f .) $(CPYTHON_CLONE)/Doc/locales/$(LANGUAGE)/LC_MESSAGES
30-
. $(VENV)/bin/activate; $(MAKE) -C $(CPYTHON_CLONE)/Doc/ SPHINXOPTS='-q -j$(JOBS) -D locale_dirs=locales -D language=$(LANGUAGE) -D gettext_compact=0 -D latex_engine=xelatex -D latex_elements.inputenc= -D latex_elements.fontenc=' $(MODE)
30+
$(MAKE) -C $(CPYTHON_CLONE)/Doc/ VENVDIR=$(VENV) PYTHON=$(PYTHON) venv
31+
$(MAKE) -C $(CPYTHON_CLONE)/Doc/ VENVDIR=$(VENV) PYTHON=$(PYTHON) SPHINXOPTS='-q -j$(JOBS) -D locale_dirs=locales -D language=$(LANGUAGE) -D gettext_compact=0 -D latex_engine=xelatex -D latex_elements.inputenc= -D latex_elements.fontenc=' $(MODE)
3132

3233

3334
$(SPHINX_CONF):
34-
git clone --depth 1 --no-single-branch https://github.com/python/cpython.git $(CPYTHON_CLONE)
35-
36-
37-
$(VENV)/bin/activate:
38-
mkdir -p $(VENV)
39-
$(PYTHON) -m venv $(VENV)
40-
41-
42-
$(VENV)/bin/sphinx-build: $(VENV)/bin/activate
43-
. $(VENV)/bin/activate; python3 -m pip install sphinx
44-
45-
46-
$(VENV)/bin/blurb: $(VENV)/bin/activate
47-
. $(VENV)/bin/activate; python3 -m pip install blurb
35+
git clone --depth 1 --no-single-branch --branch $(BRANCH) https://github.com/python/cpython.git $(CPYTHON_CLONE)
4836

4937

5038
.PHONY: upgrade_venv

0 commit comments

Comments
 (0)