Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
markbastiaans committed Oct 12, 2021
1 parent f779c23 commit 0e5a5b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ TEST_FILES := $(if $(TEST_FILES),$(TEST_FILES),tests/integration/test_*.py)
MAX_LINE_LENGTH = $(shell cat .pylintrc | grep max-line-length | cut -d '=' -f 2 | xargs)

PIP_TOOLS_VERSION = 6.2.0
PIP_VERSION = 21.2
PYTHON_PLATFORM := $(if $(PYTHON_PLATFORM),$(PYTHON_PLATFORM),manylinux2014_x86_64)
PYTHON_VERSION := $(if $(PYTHON_VERSION),$(PYTHON_VERSION),36)

Expand All @@ -15,7 +16,7 @@ vendor: download_wheels
download_wheels: requirements create_build_dirs
rm -rf build/vendor/wheels
mkdir -p build/vendor/wheels
pip3 download -d build/vendor/wheels/ --only-binary :all: pip setuptools wheel
pip3 download -d build/vendor/wheels/ --only-binary :all: pip=${PIP_VERSION} setuptools wheel
pip3 download -d build/vendor/wheels/ --no-deps --platform ${PYTHON_PLATFORM} --python-version ${PYTHON_VERSION} -r requirements.txt

.PHONY: create_build_dirs
Expand All @@ -34,7 +35,7 @@ build: create_build_dirs vendor write_commit

.PHONY: install_piptools
install_piptools:
pip3 install --upgrade pip setuptools wheel
pip3 install --upgrade pip=${PIP_VERSION} setuptools wheel
pip3 install pip-tools==$(PIP_TOOLS_VERSION)

.PHONY: install_requirements
Expand Down

0 comments on commit 0e5a5b6

Please sign in to comment.