# 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
# are we running on Windows?
IS_WINDOWS = sys.platform in ('win32', )

libraries = []
if IS_WINDOWS:
    libraries += ['user32', 'oleaut32']

include_dirs = [
    'src/sdk/C',
]

if sys.platform == 'darwin':
    # additional include directories are required when compiling on Darwin platforms
    include_dirs += [
        "/var/include",
    ]

library_dirs = []

# platforms that multithreaded compression is supported on
mt_platforms = (
    'win32',
)

if IS_WINDOWS:
    # don't try to import MSVC compiler on non-windows platforms
    # as this triggers unnecessary warnings
else:
    class MSVCCompiler(object):
        # dummy marker class

# 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

# are we running on Windows?
IS_WINDOWS = sys.platform in ('win32', )

libraries = []
if IS_WINDOWS:
    libraries += ['user32', 'oleaut32']

include_dirs = [
    'src/sdk/C',
]

if sys.platform == 'darwin':
    # additional include directories are required when compiling on Darwin platforms
    include_dirs += [
        "/var/include",
    ]

library_dirs = []

# platforms that multithreaded compression is supported on
mt_platforms = (
    'win32',
)

if IS_WINDOWS:
    # don't try to import MSVC compiler on non-windows platforms
    # as this triggers unnecessary warnings
else:
    class MSVCCompiler(object):
        # dummy marker class

        pass