Skip to content
Permalink
Browse files

Use shiv to build shiv with fixed pip

Now that pypa/pip#6008 is fixed, shiv works with
a Homebrew Python without any dumb hacks with `~/.pydistutils.cfg`.
  • Loading branch information...
rouge8 committed Jun 5, 2019
1 parent fa20979 commit 516c761385fba2a582c3cd23179f74645d93cf00
Showing with 9 additions and 3 deletions.
  1. +0 −2 .pydistutils.cfg.symlink
  2. +9 −1 Makefile

This file was deleted.

@@ -3,7 +3,7 @@ BIN_DIR = .local/bin
SHIVS = tox flake8 ipython http sphobjinv coverage pycobertura isort \
codemod twine cookiecutter futurize yamllint check-manifest sops vex \
black blacken-docs caniusepython3 snakeviz flit nox cfn-lint python-modernize \
bowler yesqa
bowler yesqa shiv

.PHONY: all clean

@@ -19,6 +19,14 @@ clean:
%: $(BIN_DIR)/%.symlink
dotfiles install

$(BIN_DIR)/shiv.symlink:
# Build shiv with pip 19.1.1 with https://github.com/pypa/pip/pull/6008
VENV_DIR=$$(mktemp -d) && \
python3 -m venv "$${VENV_DIR}" && \
"$${VENV_DIR}/bin/pip" install shiv && \
PIP_NO_CACHE_DIR=1 "$${VENV_DIR}/bin/shiv" https://github.com/pypa/pip/archive/287aa4b7bf88c7ccc237a68165ce29511e3193fa.zip shiv -c shiv -o $@ ; \
rm -rf "$${VENV_DIR}"

$(BIN_DIR)/tox.symlink:
$(SHIV) tox \
-c tox -o $@

0 comments on commit 516c761

Please sign in to comment.
You can’t perform that action at this time.