forked from AFPy/python-docs-fr
Simplifying install, cloning out of repo to avoid sphinx to search in cpython sources.
This commit is contained in:
parent
4a344f813b
commit
42cce3cd68
|
@ -1,6 +1,5 @@
|
|||
language: python
|
||||
python: 3.6
|
||||
install:
|
||||
- git clone --depth 1 --branch 3.7 https://github.com/python/cpython.git
|
||||
install: true
|
||||
script:
|
||||
- make CPYTHON_CLONE=cpython BRANCH=3.7
|
||||
- make CPYTHON_CLONE=/tmp/cpython/ BRANCH=3.7
|
||||
|
|
20
Makefile
20
Makefile
|
@ -24,27 +24,15 @@ JOBS = 4
|
|||
|
||||
|
||||
.PHONY: all
|
||||
all: $(VENV)/bin/sphinx-build $(VENV)/bin/blurb $(SPHINX_CONF)
|
||||
all: $(SPHINX_CONF)
|
||||
mkdir -p $(CPYTHON_CLONE)/Doc/locales/$(LANGUAGE)/
|
||||
ln -nfs $(shell readlink -f .) $(CPYTHON_CLONE)/Doc/locales/$(LANGUAGE)/LC_MESSAGES
|
||||
. $(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)
|
||||
$(MAKE) -C $(CPYTHON_CLONE)/Doc/ VENVDIR=$(VENV) PYTHON=$(PYTHON) venv
|
||||
$(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)
|
||||
|
||||
|
||||
$(SPHINX_CONF):
|
||||
git clone --depth 1 --no-single-branch https://github.com/python/cpython.git $(CPYTHON_CLONE)
|
||||
|
||||
|
||||
$(VENV)/bin/activate:
|
||||
mkdir -p $(VENV)
|
||||
$(PYTHON) -m venv $(VENV)
|
||||
|
||||
|
||||
$(VENV)/bin/sphinx-build: $(VENV)/bin/activate
|
||||
. $(VENV)/bin/activate; python3 -m pip install sphinx
|
||||
|
||||
|
||||
$(VENV)/bin/blurb: $(VENV)/bin/activate
|
||||
. $(VENV)/bin/activate; python3 -m pip install blurb
|
||||
git clone --depth 1 --no-single-branch --branch $(BRANCH) https://github.com/python/cpython.git $(CPYTHON_CLONE)
|
||||
|
||||
|
||||
.PHONY: upgrade_venv
|
||||
|
|
Loading…
Reference in New Issue
Block a user