From 16cb5c0f6a90e5094abe355d6583ed73c3530dea Mon Sep 17 00:00:00 2001 From: Yuanle Song Date: Tue, 10 Apr 2018 13:26:37 +0800 Subject: [PATCH] v0.20.5 "make install" now use pip The old "setup.py install" will create an egg and install it, which requires a PYTHON_EGG_CACHE dir to work. pip doesn't build egg at all. --- project.clj | 2 +- src/leiningen/new/python/Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project.clj b/project.clj index bafa300..e9832a6 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject python/lein-template "0.20.4" +(defproject python/lein-template "0.20.5" :description "lein template for a python project" :repositories [["snapshots" {:url "http://devserv.game.yy.com/nexus/content/repositories/snapshots" diff --git a/src/leiningen/new/python/Makefile b/src/leiningen/new/python/Makefile index 9c004b9..ca0c9d9 100644 --- a/src/leiningen/new/python/Makefile +++ b/src/leiningen/new/python/Makefile @@ -42,9 +42,9 @@ bootstrap: venv requirements bootstrap-dev: REQUIREMENTS += $(DEV_REQUIREMENTS) bootstrap-dev: venv requirements install: bootstrap - $(PYTHON) setup.py -q install + $(PIP) install -q --no-index . uninstall: bootstrap - $(PIP) uninstall {{python-pkg-name}} # TODO not tested. + $(PIP) uninstall -q -y {{python-pkg-name}} deb: utils/build-deb pipfreeze: -- GitLab