From 21706a66c27e7ee341747664dc7a6f0ce0ed9350 Mon Sep 17 00:00:00 2001 From: krbiggers Date: Sun, 26 Jan 2025 21:31:48 -0500 Subject: [PATCH] =?UTF-8?q?Hacer=20que=20no=20instentamos=20instalar=20los?= =?UTF-8?q?=20requisitos=20de=20requirements.txt=20a=20menos=20que=20estam?= =?UTF-8?q?os=20haciendo=20una=20construcci=C3=B3n=C2=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .overrides/CONTRIBUTING.rst | 13 ------------- Makefile | 5 ++++- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/.overrides/CONTRIBUTING.rst b/.overrides/CONTRIBUTING.rst index 005aef4bd4..360b3f0957 100644 --- a/.overrides/CONTRIBUTING.rst +++ b/.overrides/CONTRIBUTING.rst @@ -68,19 +68,6 @@ podrás realizar todas las contribuciones que quieras. ``powrap`` y ``pospell`` para poder verificar tus archivos traducidos, y también construir la documentación localmente. - .. note:: - - Si vas a querer construir la documentación de una manera local, debes inicializar - los submódulos para poder hacer la construcción. (nota: esta inicialización puede llevar tiempo) - ``` - git submodule update --init - pip install -r requirements.txt - ``` - y después para hacer la construcción - ``` - make build - ``` - .. _que-archivo-traducir: Paso 1: ¿Qué archivo traducir? diff --git a/Makefile b/Makefile index f6e011c7b4..75f0f9dd50 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,9 @@ do_build: setup: venv git submodule sync git submodule update --init --force --depth 1 $(CPYTHON_PATH) + # Now that we've initialized the submodules, install all requirements necessary for the build + $(VENV)/bin/python -m pip install -q -r requirements.txt + # venv: create a virtual environment which will be used by almost every @@ -66,7 +69,7 @@ venv: $(PYTHON) -m venv --prompt $(LANGUAGE_TEAM) $(VENV); \ fi - $(VENV)/bin/python -m pip install -q -r requirements.txt + $(VENV)/bin/python -m pip install -q -r requirements-own.txt # serve: serve the documentation in a simple local web server, using cpython