Commit 65f85cfc authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Handle synnefo imports in setup.py files

parent f4b18050
......@@ -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.api', 'version', HERE)
try:
# try to update the version file
from synnefo.util import version
version.update_version('pithos.api', 'version', HERE)
except ImportError:
pass
from pithos.api.version import __version__
# Package info
......
......@@ -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
......
......@@ -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.lib', 'version', HERE)
try:
# try to update the version file
from synnefo.util import version
version.update_version('pithos.lib', 'version', HERE)
except ImportError:
pass
from pithos.lib.version import __version__
# Package info
......
......@@ -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.tools', 'version', HERE)
try:
# try to update the version file
from synnefo.util import version
version.update_version('pithos.tools', 'version', HERE)
except ImportError:
pass
from pithos.tools.version import __version__
# Package info
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment