From 97f905e66ec9c88fff37679acb2bbf9d8a94363b Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 7 Jan 2008 01:01:19 +0000 Subject: [PATCH] Enable Python build with regular user to avoid perm problems at clean time. git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8340 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/Makefile | 8 +++++++- Open-ILS/src/python/Makefile | 22 ++++++++++++++-------- install.sh | 5 ++++- 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/Open-ILS/src/Makefile b/Open-ILS/src/Makefile index 9e219905f0..d7782c8654 100644 --- a/Open-ILS/src/Makefile +++ b/Open-ILS/src/Makefile @@ -8,7 +8,7 @@ export INCDIR = "$(INCLUDEDIR)/openils/" export STAFF_CLIENT_BUILD_ID = `/bin/cat ../xul/staff_client/build/BUILD_ID` -all: c_apps client-xul mod_xmlent +all: c_apps client-xul mod_xmlent python-build install: perl-install python-install web-install server-xul string-templates-install xsl-install c_apps-install circ_rules-install offline-install storage-bootstrap cgi-bootstrap @@ -138,6 +138,12 @@ perl-install: mkdir -p $(TEMPLATEDIR) cp -r templates/marc $(TEMPLATEDIR) +# ------------------------------------------------------------------------------ + +python-build: + @echo $@ + make -C python build + # ----------------------------------------------------------------------------------- python-install: diff --git a/Open-ILS/src/python/Makefile b/Open-ILS/src/python/Makefile index ec18882752..9eafc3c793 100644 --- a/Open-ILS/src/python/Makefile +++ b/Open-ILS/src/python/Makefile @@ -1,16 +1,22 @@ -# vim:noet:ts=4 +# makefile for OpenSRF Python modules and scripts -install: python-install - -python-build: +# ------------------------------------------------------------------------------ +# BUILD +# ------------------------------------------------------------------------------ +build: @echo $@ python setup.py build -python-install: +# ------------------------------------------------------------------------------ +# INSTALL +# ------------------------------------------------------------------------------ +install: build @echo $@ python setup.py install +# ------------------------------------------------------------------------------ +# CLEAN +# ------------------------------------------------------------------------------ clean: - @echo $@ - rm -fr build - find . -name "*.pyc" -exec rm -f {} \; + /bin/rm -rf build + diff --git a/install.sh b/install.sh index 4abae27776..f54fd98ce5 100755 --- a/install.sh +++ b/install.sh @@ -139,7 +139,10 @@ function runInstall { ;; "openils_core" ) - if building; then $MAKE -C "$OPENILSDIR" "c_apps"; fi; + if building; then + $MAKE -C "$OPENILSDIR" "c_apps"; + $MAKE -C "$OPENILSDIR" "python-build"; + fi; if installing; then $MAKE -C "$OPENILSDIR" "perl-install"; $MAKE -C "$OPENILSDIR" "python-install"; -- 2.11.0