Skip to content

Commit e127ba9

Browse files
committed
fix: Simplify make upgrade
See openedx/edx-platform#37636 for more details.
1 parent 56e3946 commit e127ba9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

backend/Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ docs: ## generate Sphinx HTML documentation, including API docs
3535
# Define PIP_COMPILE_OPTS=-v to get more information during make upgrade.
3636
PIP_COMPILE = pip-compile $(PIP_COMPILE_OPTS)
3737

38-
compile-requirements: ## compile the requirements/*.txt files with the latest packages satisfying requirements/*.in
39-
pip install -qr requirements/pip-tools.txt
40-
pip-compile -v ${COMPILE_OPTS} --allow-unsafe --rebuild -o requirements/pip.txt requirements/pip.in
41-
pip-compile -v ${COMPILE_OPTS} -o requirements/pip-tools.txt requirements/pip-tools.in
42-
pip install -qr requirements/pip.txt
38+
compile-requirements: piptools ## compile the requirements/*.txt files with the latest packages satisfying requirements/*.in
39+
pip-compile -v ${COMPILE_OPTS} --allow-unsafe --rebuild -o requirements/pip-tools.txt requirements/pip-tools.in
4340
pip install -qr requirements/pip-tools.txt
4441
$(PIP_COMPILE) -o requirements/base.txt requirements/base.in
4542
$(PIP_COMPILE) -o requirements/test.txt requirements/test.in
@@ -62,7 +59,6 @@ pii_check: ## check for PII annotations on all Django models
6259
tox -e pii_check
6360

6461
piptools: ## install pinned version of pip-compile and pip-sync
65-
pip install -r requirements/pip.txt
6662
pip install -r requirements/pip-tools.txt
6763

6864
requirements: clean_tox piptools ## install development environment requirements

0 commit comments

Comments
 (0)