[open-ils-commits] r8328 - in branches/acq-experiment/Open-ILS/src:
. python
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Jan 6 14:34:06 EST 2008
Author: dbs
Date: 2008-01-06 14:09:51 -0500 (Sun, 06 Jan 2008)
New Revision: 8328
Added:
branches/acq-experiment/Open-ILS/src/python/Makefile
branches/acq-experiment/Open-ILS/src/python/setup.py
Modified:
branches/acq-experiment/Open-ILS/src/Makefile
Log:
Use distutils to install Python oils module (port from trunk).
Modified: branches/acq-experiment/Open-ILS/src/Makefile
===================================================================
--- branches/acq-experiment/Open-ILS/src/Makefile 2008-01-06 18:44:22 UTC (rev 8327)
+++ branches/acq-experiment/Open-ILS/src/Makefile 2008-01-06 19:09:51 UTC (rev 8328)
@@ -138,11 +138,11 @@
mkdir -p $(TEMPLATEDIR)
cp -r templates/marc $(TEMPLATEDIR)
+# -----------------------------------------------------------------------------------
+
python-install:
@echo $@
- @echo "Installing Python modules to $(PYTHONDIR)"
- mkdir -p $(PYTHONDIR)
- cp -r python/* $(PYTHONDIR)
+ make -C python install
# -----------------------------------------------------------------------------------
@@ -210,4 +210,5 @@
make -C extras clean
make -C apachemods clean
make -C c-apps clean
+ make -C python clean
Added: branches/acq-experiment/Open-ILS/src/python/Makefile
===================================================================
--- branches/acq-experiment/Open-ILS/src/python/Makefile (rev 0)
+++ branches/acq-experiment/Open-ILS/src/python/Makefile 2008-01-06 19:09:51 UTC (rev 8328)
@@ -0,0 +1,16 @@
+# vim:noet:ts=4
+
+install: python-install
+
+python-build:
+ @echo $@
+ python setup.py build
+
+python-install:
+ @echo $@
+ python setup.py install
+
+clean:
+ @echo $@
+ rm -fr build
+ find . -name "*.pyc" -exec rm -f {} \;
Added: branches/acq-experiment/Open-ILS/src/python/setup.py
===================================================================
--- branches/acq-experiment/Open-ILS/src/python/setup.py (rev 0)
+++ branches/acq-experiment/Open-ILS/src/python/setup.py 2008-01-06 19:09:51 UTC (rev 8328)
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+from distutils.core import setup
+import os, os.path
+
+dir = os.path.dirname(__file__)
+
+setup(name='Evergreen',
+ version='1.2',
+ requires='OpenSRF',
+ description='Evergreen Python Modules',
+ author='Bill Erickson',
+ author_email='open-ils-dev at list.georgialibraries.org',
+ url='http://www.open-ils.org/',
+ packages=['oils', 'oils.utils'],
+ package_dir={'': dir}
+)
More information about the open-ils-commits
mailing list