This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+lang/python/local/pylookup/makefile
Maximilian Wolff 6d40ee8e10 Revert "python: replaced local package pylookup with the one on github"
This reverts commit 6e0f650101.
The reason for this is not that the dynamically build pylookup.py
is not found by emacs, this I have already solved locally by checking
the quelpa build directory.

However the issue is that the library is not compatible with python 3
the local version however is.

So this is effectively a fork and must be kept till python 3
compatibility for pylookup has been achieved.

Should fix #14544
2021-03-21 09:53:13 +00:00

20 lines
550 B
Makefile

SHELL := /bin/sh
VER := $(shell python --version 2>&1 | grep -o "[0-9].[0-9].[0-9]*")
MAJOR_VERSION = $(shell python --version 2>&1 | grep -o "Python [0-9]" | grep -o "[0-9]")
ZIP := python-${VER}-docs-html.zip
URL := https://docs.python.org/2/archives/${ZIP}
URL2:= https://docs.python.org/3/archives/${ZIP}
ifneq (2,${MAJOR_VERSION})
URL := ${URL2}
endif
download:
@if [ ! -e ${ZIP} ] ; then \
echo "Downloading ${URL}"; \
wget ${URL}; \
unzip ${ZIP}; \
fi
./pylookup.py -u $(ZIP:.zip=)
.PHONY: download