Fix Debian changelog for snf-pithos-backend
[pithos] / snf-pithos-backend / setup.py
index 569b74e..590d7fe 100644 (file)
@@ -40,10 +40,15 @@ import os
 from distutils.util import convert_path
 from fnmatch import fnmatchcase
 from setuptools import setup, find_packages
-from synnefo.util import version
 
 HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
-version.update_version('pithos.backends', 'version', HERE)
+try:
+    # try to update the version file
+    from synnefo.util import version
+    version.update_version('pithos.backends', 'version', HERE)
+except ImportError:
+    pass
+
 from pithos.backends.version import __version__
 
 # Package info
@@ -60,10 +65,9 @@ CLASSIFIERS = []
 
 # Package requirements
 INSTALL_REQUIRES = [
-    'Django>=1.2.3',
+    'snf-common',
+    'snf-pithos-lib',
     'SQLAlchemy>=0.6.3',
-    'MySQL-python>=1.2.2',
-    'psycopg2>=2.2.1'
 ]
 
 EXTRAS_REQUIRES = {
@@ -185,7 +189,7 @@ setup(
     zip_safe = False,
 
     dependency_links = [
-        'http://docs.dev.grnet.gr/pypi/index.html'],
+        'http://docs.dev.grnet.gr/pypi/'],
 
     install_requires = INSTALL_REQUIRES,
     extras_require = EXTRAS_REQUIRES,
@@ -194,6 +198,9 @@ setup(
     entry_points = {
      'console_scripts': [
          ],
+     'synnefo': [
+         'default_settings = pithos.backends.settings',
+         ]
       },
 )