# TOP level 'src' makefile for OpenSRF
-
export TMPDIR = $(TMP)/opensrf
export OPENSRF = opensrf
export BINDIR = $(PREFIX)/bin
export LIBDIR = $(PREFIX)/lib
export PERLDIR = $(LIBDIR)/perl5
-export PYTHON25DIR = $(LIBDIR)/python25
export JSDIR = $(LIBDIR)/javascript
export INCLUDEDIR= $(PREFIX)/include
jserver-install \
javascript-install \
perl-install \
- python25-install \
+ python-install \
java-install
mkdir -p $(BINDIR)
mkdir -p $(JSDIR)
mkdir -p $(PERLDIR)
- mkdir -p $(PYTHON25DIR)
mkdir -p $(INCLUDEDIR)
mkdir -p $(ETCDIR)
@echo $@
cp -r perlmods/* $(PERLDIR)/
-python25-install: install-prep
- @echo $@
- cp -r python/* $(PYTHON25DIR)/
+python-install:
+ make -C python install
java-install:
if [ -n "$(OSRF_INSTALL_JAVA)" ]; then echo $@; cd java && . deps.inc && make install; fi;
make -C srfsh clean
make -C c-apps clean
make -C java clean
+ make -C python clean
/bin/rm -rf $(TMPDIR) *.o
--- /dev/null
+# makefile for OpenSRF Python modules and scripts
+
+install: python-install
+
+# --------------------------------------------------------------------------------
+# INSTALL
+# --------------------------------------------------------------------------------
+python-build:
+ @echo $@
+ python setup.py build
+
+python-install: python-build
+ @echo $@
+ python setup.py install
+
+# --------------------------------------------------------------------------------
+# CLEAN
+# --------------------------------------------------------------------------------
+clean:
+ /bin/rm -rf build
+
import osrf.set
import sys
from osrf.const import OSRF_MESSAGE_TYPE_DISCONNECT, OSRF_STATUS_CONTINUE, \
- OSRF_STATUS_TIMEOUT, OSRF_MESSAGE_TYPE_STATUS,
+ OSRF_STATUS_TIMEOUT, OSRF_MESSAGE_TYPE_STATUS
import osrf.net
import osrf.log
--- /dev/null
+#!/usr/bin/env python
+from distutils.core import setup
+import os, os.path
+
+dir = os.path.dirname(__file__)
+
+setup(name='OpenSRF',
+ version='1.2',
+# requires is not actually implemented in distutils
+# requires=['memcache', 'pyxmpp', 'simplejson'],
+ description='OpenSRF Python Modules',
+ author='Bill Erickson',
+ author_email='open-ils-dev@list.georgialibraries.org',
+ url='http://www.open-ils.org/',
+ packages=['osrf'],
+ package_dir={'': dir},
+ scripts=[os.path.join(dir, 'srfsh.py')]
+)