[open-ils-commits] r8389 - in trunk: . Open-ILS/src
Open-ILS/src/python
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jan 15 23:03:15 EST 2008
Author: dbs
Date: 2008-01-15 22:37:47 -0500 (Tue, 15 Jan 2008)
New Revision: 8389
Modified:
trunk/Open-ILS/src/Makefile
trunk/Open-ILS/src/python/Makefile
trunk/Open-ILS/src/python/setup.py
trunk/config.sh
trunk/install.conf.default
trunk/install.sh
Log:
Backport from acq-experiment branch:
Add a build flag for Python modules.
Use setuptools for building and installing Python modules.
Modified: trunk/Open-ILS/src/Makefile
===================================================================
--- trunk/Open-ILS/src/Makefile 2008-01-15 23:29:10 UTC (rev 8388)
+++ trunk/Open-ILS/src/Makefile 2008-01-16 03:37:47 UTC (rev 8389)
@@ -141,14 +141,12 @@
# ------------------------------------------------------------------------------
python-build:
- @echo $@
- make -C python build
+ if [ -n "$(EG_PYTHON_INSTALL)" ]; then echo $@; make -C python build; fi;
# -----------------------------------------------------------------------------------
python-install:
- @echo $@
- make -C python install
+ if [ -n "$(EG_PYTHON_INSTALL)" ]; then echo $@; make -C python install; fi;
# -----------------------------------------------------------------------------------
@@ -216,5 +214,5 @@
make -C extras clean
make -C apachemods clean
make -C c-apps clean
- make -C python clean
+ if [ -n "$(EG_PYTHON_INSTALL)" ]; then echo $@; make -C python clean --all; fi;
Modified: trunk/Open-ILS/src/python/Makefile
===================================================================
--- trunk/Open-ILS/src/python/Makefile 2008-01-15 23:29:10 UTC (rev 8388)
+++ trunk/Open-ILS/src/python/Makefile 2008-01-16 03:37:47 UTC (rev 8389)
@@ -18,5 +18,5 @@
# CLEAN
# ------------------------------------------------------------------------------
clean:
- /bin/rm -rf build
+ python setup.py clean --all
Modified: trunk/Open-ILS/src/python/setup.py
===================================================================
--- trunk/Open-ILS/src/python/setup.py 2008-01-15 23:29:10 UTC (rev 8388)
+++ trunk/Open-ILS/src/python/setup.py 2008-01-16 03:37:47 UTC (rev 8389)
@@ -10,5 +10,4 @@
license='GPL',
url='http://www.open-ils.org/',
packages=['oils', 'oils.utils'],
- package_dir={'': '.'}
)
Modified: trunk/config.sh
===================================================================
--- trunk/config.sh 2008-01-15 23:29:10 UTC (rev 8388)
+++ trunk/config.sh 2008-01-16 03:37:47 UTC (rev 8389)
@@ -92,6 +92,13 @@
prompt "Build targets [${TARGETS[@]:0}] "
read X; if [ ! -z "$X" ]; then TARGETS=("$X"); fi;
+ prompt "Should we build Python modules? (Y/N) [$EG_PYTHON_INSTALL] "
+ read X;
+ if [ "$X" = "Y" ];
+ then EG_PYTHON_INSTALL="Y";
+ else EG_PYTHON_INSTALL="";
+ fi;
+
prompt "Database Driver [$DBDRVR] "
read X; if [ ! -z "$X" ]; then DBDRVR="$X"; fi;
@@ -164,6 +171,7 @@
STR="$STR)";
_write "$STR";
+ _write "EG_PYTHON_INSTALL=\"$EG_PYTHON_INSTALL\"";
_write "OPENILSDIR=\"Open-ILS/src/\"";
_write "EVERGREENDIR=\"Evergreen/\"";
Modified: trunk/install.conf.default
===================================================================
--- trunk/install.conf.default 2008-01-15 23:29:10 UTC (rev 8388)
+++ trunk/install.conf.default 2008-01-16 03:37:47 UTC (rev 8389)
@@ -36,6 +36,12 @@
# --------------------------------------------------------------------
+# Should we build the Evergreen Python modules?
+# These depend on having the setuptools module installed.
+# --------------------------------------------------------------------
+EG_PYTHON_INSTALL="N"
+
+# --------------------------------------------------------------------
# Global install prefix. Binaries will be installed into PREFIX/bin,
# libraries will be installed into PREFIX/lib, etc. The user
# running 'install.sh install' must have write permissions to PREFIX
Modified: trunk/install.sh
===================================================================
--- trunk/install.sh 2008-01-15 23:29:10 UTC (rev 8388)
+++ trunk/install.sh 2008-01-16 03:37:47 UTC (rev 8389)
@@ -119,7 +119,7 @@
MAKE="make $verbose APXS2=$APXS2 PREFIX=$PREFIX TMP=$TMP APR_HEADERS=$APR_HEADERS \
APACHE2_HEADERS=$APACHE2_HEADERS LIBXML2_HEADERS=$LIBXML2_HEADERS DBPORT=$DBPORT\
- BINDIR=$BINDIR DBI_LIBS=$DBI_LIBS LIBDIR=$LIBDIR PERLDIR=$PERLDIR INCLUDEDIR=$INCLUDEDIR \
+ BINDIR=$BINDIR DBI_LIBS=$DBI_LIBS LIBDIR=$LIBDIR PERLDIR=$PERLDIR EG_PYTHON_INSTALL=$EG_PYTHON_INSTALL INCLUDEDIR=$INCLUDEDIR \
WEBDIR=$WEBDIR TEMPLATEDIR=$TEMPLATEDIR ETCDIR=$ETCDIR REPORTERDIR=$REPORTERDIR\
OPENSRF_HEADERS=$OPENSRF_HEADERS OPENSRF_LIBS=$OPENSRF_LIBS OPENILSDIR=$OPENILSDIR EVERGREENDIR=$EVERGREENDIR \
CIRCRULESDIR=$CIRCRULESDIR CATALOGSCRIPTDIR=$CATALOGSCRIPTDIR CGIDIR=$CGIDIR \
More information about the open-ils-commits
mailing list