Install Evergreen Python modules via distutils
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 23 Dec 2007 02:41:38 +0000 (02:41 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 23 Dec 2007 02:41:38 +0000 (02:41 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8275 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/Makefile
Open-ILS/src/python/Makefile [new file with mode: 0644]
Open-ILS/src/python/setup.py [new file with mode: 0644]

index e47405c..9e21990 100644 (file)
@@ -10,7 +10,7 @@ export STAFF_CLIENT_BUILD_ID = `/bin/cat ../xul/staff_client/build/BUILD_ID`
 
 all:  c_apps client-xul mod_xmlent
 
-install:       perl-install web-install server-xul string-templates-install xsl-install c_apps-install circ_rules-install offline-install storage-bootstrap cgi-bootstrap
+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
 
 web-install:   webcore-install autojs-install mod_xmlent-install offline-install reporter-install
 
@@ -140,6 +140,12 @@ perl-install:
 
 # -----------------------------------------------------------------------------------
 
+python-install:
+       @echo $@
+       make -C python install
+
+# -----------------------------------------------------------------------------------
+
 reporter-install:
        @echo $@
        @echo "Installing Reporter email templates to $(REPORTERDIR) and example configs to $(ETCDIR)"
@@ -204,4 +210,5 @@ clean:
        make -C extras clean
        make -C apachemods clean
        make -C c-apps clean
+       make -C python clean
 
diff --git a/Open-ILS/src/python/Makefile b/Open-ILS/src/python/Makefile
new file mode 100644 (file)
index 0000000..ec18882
--- /dev/null
@@ -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 {} \;
diff --git a/Open-ILS/src/python/setup.py b/Open-ILS/src/python/setup.py
new file mode 100644 (file)
index 0000000..91abf1d
--- /dev/null
@@ -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@list.georgialibraries.org',
+    url='http://www.open-ils.org/',
+    packages=['oils', 'oils.utils'],
+    package_dir={'': dir}
+)