From 306fb310bba2bdca6ca195f2b7cc44073f05c6b9 Mon Sep 17 00:00:00 2001 From: Yuanle Song <sylecn@gmail.com> Date: Sun, 12 Jan 2020 13:32:48 +0800 Subject: [PATCH] v1.9.3 utils/build-deb should include all python modules by default --- project.clj | 2 +- src/leiningen/new/python/utils/build-deb | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/project.clj b/project.clj index 76b7002..3f4530a 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject python/lein-template "1.9.2" +(defproject python/lein-template "1.9.3" :description "lein template for a python project" :url "https://gitlab.emacsos.com/sylecn/python-project-template" :license {:name "Apache License 2.0" diff --git a/src/leiningen/new/python/utils/build-deb b/src/leiningen/new/python/utils/build-deb index 1614e81..a0c6363 100644 --- a/src/leiningen/new/python/utils/build-deb +++ b/src/leiningen/new/python/utils/build-deb @@ -13,7 +13,7 @@ build_dest_dir() { fi rm -rf "$DEST" mkdir -p "${DEST}${DEST_DIR}" - for f in Makefile README.rst setup.py utils requirements*.txt wheelhouse conf $PYTHON_MODULES + for f in Makefile README.rst setup.py requirements*.txt wheelhouse conf $PYTHON_MODULES do cp -al "$PWD/$f" "${DEST}${DEST_DIR}/$f" done @@ -38,8 +38,7 @@ fi VERSION=`grep '__version__' {{python-pkg-name}}/__init__.py |cut -d'"' -f 2` DEB_PKG_NAME="{{name}}" DEST_DIR="/opt/$DEB_PKG_NAME" -PYTHON_MODULES="{{python-pkg-name}}" -#PYTHON_MODULES=`echo */__init__.py|cut -d'/' -f1` +PYTHON_MODULES=`ls */__init__.py|cut -d'/' -f1` if [ ! -d wheelhouse ]; then make wheel -- GitLab