# Path: version.py
# def get_git_version(abbrev=4):
#     # Read in the version that's currently in RELEASE-VERSION.
# 
#     release_version = read_release_version()
# 
#     # First try to get the current version using “git describe”.
# 
#     version = call_git_describe(abbrev)
# 
#     # If that doesn't work, fall back on the value that's in
#     # RELEASE-VERSION.
# 
#     if version is None:
#         version = release_version
#         if version is None:
#             return None
# 
#     # If the current version is different from what's in the
#     # RELEASE-VERSION file, update the file to be current.
# 
#     if version != release_version:
#         write_release_version(version)
# 
#     # Finally, return the current version.
# 
#     return version


import sys, os
from warnings import warn
from distutils import log
from distutils.command.build_ext import build_ext as _build_ext
from version import get_git_version
    from setuptools import setup, Extension
    from ez_setup import use_setuptools
    from setuptools import setup, Extension
    from distutils.msvccompiler import MSVCCompiler
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# $Id$
#

try:
except ImportError:
    use_setuptools()


class UnsupportedPlatformWarning(Warning):
    pass

try:
    unicode
except NameError:
    # Python 3.x
    class unicode(object):
        def __new__(cls, s):
            if isinstance(s, str):
                return s
            return s and s.decode('utf-8') or None


# Path: version.py
# def get_git_version(abbrev=4):
#     # Read in the version that's currently in RELEASE-VERSION.
# 
#     release_version = read_release_version()
# 
#     # First try to get the current version using “git describe”.
# 
#     version = call_git_describe(abbrev)
# 
#     # If that doesn't work, fall back on the value that's in
#     # RELEASE-VERSION.
# 
#     if version is None:
#         version = release_version
#         if version is None:
#             return None
# 
#     # If the current version is different from what's in the
#     # RELEASE-VERSION file, update the file to be current.
# 
#     if version != release_version:
#         write_release_version(version)
# 
#     # Finally, return the current version.
# 
#     return version


# Path: setup.py
import sys, os
from warnings import warn
from distutils import log
from distutils.command.build_ext import build_ext as _build_ext
from version import get_git_version
    from setuptools import setup, Extension
    from ez_setup import use_setuptools
    from setuptools import setup, Extension
    from distutils.msvccompiler import MSVCCompiler

# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# $Id$
#

try:
except ImportError:
    use_setuptools()


class UnsupportedPlatformWarning(Warning):
    pass

try:
    unicode
except NameError:
    # Python 3.x
    class unicode(object):
        def __new__(cls, s):
            if isinstance(s, str):
                return s
            return s and s.decode('utf-8') or None


version = get_git_version()