[Opensrf-commits] r1212 - trunk/src/python

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Jan 14 23:28:27 EST 2008


Author: dbs
Date: 2008-01-14 23:03:07 -0500 (Mon, 14 Jan 2008)
New Revision: 1212

Modified:
   trunk/src/python/setup.py
Log:
Switch to setuptools to enable dependency installs as well


Modified: trunk/src/python/setup.py
===================================================================
--- trunk/src/python/setup.py	2008-01-07 14:55:36 UTC (rev 1211)
+++ trunk/src/python/setup.py	2008-01-15 04:03:07 UTC (rev 1212)
@@ -1,18 +1,22 @@
 #!/usr/bin/env python
-from distutils.core import setup
-import os, os.path
+from setuptools import setup
 
-dir = os.path.dirname(__file__)
-
 setup(name='OpenSRF',
     version='1.0',
-# requires is not actually implemented in distutils
-#    requires=['memcache', 'pyxmpp', 'simplejson'],
+    install_requires=[
+        'python_memcached>=1.40',
+        'pyxmpp>=1.0.0',
+        'simplejson>=1.7.1'
+    ],
+    dependency_links = [
+        "http://pyxmpp.jajcus.net/downloads/"
+    ],
     description='OpenSRF Python Modules',
     author='Bill Erickson',
-    author_email='open-ils-dev at list.georgialibraries.org',
+    author_email='erickson at esilibrary.com',
+    license="GPL",
     url='http://www.open-ils.org/',
     packages=['osrf'],
-    package_dir={'': dir},
-    scripts=[os.path.join(dir, 'srfsh.py')]
+    package_dir={'': '.'},
+    scripts=['./srfsh.py']
 )



More information about the opensrf-commits mailing list