Switch to setuptools to enable dependency installs as well
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 15 Jan 2008 04:03:07 +0000 (04:03 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 15 Jan 2008 04:03:07 +0000 (04:03 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1212 9efc2488-bf62-4759-914b-345cdb29e865

src/python/setup.py

index 0373f86..6452226 100644 (file)
@@ -1,18 +1,22 @@
 #!/usr/bin/env python
-from distutils.core import setup
-import os, os.path
-
-dir = os.path.dirname(__file__)
+from setuptools import setup
 
 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@list.georgialibraries.org',
+    author_email='erickson@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']
 )