6d40ee8e10
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
20 lines
550 B
Makefile
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
|