# Path: install_scripts/common.py
# ICM_AGENT_ROOT = ''
# BIN_DIRNAME = os.path.join(ICM_AGENT_ROOT,'bin')
# ICM_AGENT_MAIN = os.path.join(BIN_DIRNAME, 'icm-agent')
# CONFIG_DIR = os.path.join(ICM_AGENT_ROOT,'conf')
# DOCS_DIR = os.path.join(ICM_AGENT_ROOT,'docs')
# LOG_DIR = os.path.join(ICM_AGENT_ROOT,'log')
# LOCALES_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'locales')
# IMAGES_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'images')
# ICONS_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'icons')
# DB_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'db')
# TMP_DIR = os.path.join(ICM_AGENT_ROOT,'tmp')
# TOOLS_DIR = os.path.join(ICM_AGENT_ROOT,'tools')
# UMITLIB_DIR = os.path.join(ICM_AGENT_ROOT,'umit')
# 
# Path: umit/icm/agent/Version.py
# VERSION = g_db_helper.get_information(key='version',default="Dev")
# 
# Path: install_scripts/common.py
# ICM_AGENT_ROOT = ''
# BIN_DIRNAME = os.path.join(ICM_AGENT_ROOT,'bin')
# ICM_AGENT_MAIN = os.path.join(BIN_DIRNAME, 'icm-agent')
# CONFIG_DIR = os.path.join(ICM_AGENT_ROOT,'conf')
# DOCS_DIR = os.path.join(ICM_AGENT_ROOT,'docs')
# LOG_DIR = os.path.join(ICM_AGENT_ROOT,'log')
# LOCALES_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'locales')
# IMAGES_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'images')
# ICONS_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'icons')
# DB_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'db')
# TMP_DIR = os.path.join(ICM_AGENT_ROOT,'tmp')
# TOOLS_DIR = os.path.join(ICM_AGENT_ROOT,'tools')
# UMITLIB_DIR = os.path.join(ICM_AGENT_ROOT,'umit')


import os
import sys
import re
import sys
import os
import os.path
import shutil
import shutil
from setuptools import setup
from install_scripts import common
from stat import *
from glob import glob
from distutils.core import setup, Extension, Command
from distutils.command.install import install
from distutils.command.build import build
from distutils.command.sdist import sdist
from distutils import log, dir_util
from umit.icm.agent.Version import VERSION
from install_scripts.common import *
from install_scripts import common









#ROOT_DIR = os.path.abspath(os.path.dirname(__file__))


# py2app requires the values in the app's list to have known extensions, but
# bin/umit doesn't. Here bin/umit is renamed to bin/umit_main.py and the old
# name is stored in common.OLD_UMIT_MAIN so it can be renamed again later.
#shutil.move(common.UMIT_MAIN, common.ICM_AGENT_MAIN + '_main.py')
#common.OLD_UMIT_MAIN = common.ICM_AGENT_MAIN
common.ICM_AGENT_MAIN = os.path.join(common.BIN_DIRNAME, 'icm-agent')




##################### Umit banner #######################################
print
print "%s OpenMonitor Desktop Agent for Mac OS %s %s" % ("#" * 10, VERSION, "#" * 10)
print
#########################################################################

setup(
        name         = 'icm-agent',

# Path: install_scripts/common.py
# ICM_AGENT_ROOT = ''
# BIN_DIRNAME = os.path.join(ICM_AGENT_ROOT,'bin')
# ICM_AGENT_MAIN = os.path.join(BIN_DIRNAME, 'icm-agent')
# CONFIG_DIR = os.path.join(ICM_AGENT_ROOT,'conf')
# DOCS_DIR = os.path.join(ICM_AGENT_ROOT,'docs')
# LOG_DIR = os.path.join(ICM_AGENT_ROOT,'log')
# LOCALES_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'locales')
# IMAGES_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'images')
# ICONS_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'icons')
# DB_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'db')
# TMP_DIR = os.path.join(ICM_AGENT_ROOT,'tmp')
# TOOLS_DIR = os.path.join(ICM_AGENT_ROOT,'tools')
# UMITLIB_DIR = os.path.join(ICM_AGENT_ROOT,'umit')
# 
# Path: umit/icm/agent/Version.py
# VERSION = g_db_helper.get_information(key='version',default="Dev")
# 
# Path: install_scripts/common.py
# ICM_AGENT_ROOT = ''
# BIN_DIRNAME = os.path.join(ICM_AGENT_ROOT,'bin')
# ICM_AGENT_MAIN = os.path.join(BIN_DIRNAME, 'icm-agent')
# CONFIG_DIR = os.path.join(ICM_AGENT_ROOT,'conf')
# DOCS_DIR = os.path.join(ICM_AGENT_ROOT,'docs')
# LOG_DIR = os.path.join(ICM_AGENT_ROOT,'log')
# LOCALES_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'locales')
# IMAGES_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'images')
# ICONS_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'icons')
# DB_DIR = os.path.join(ICM_AGENT_ROOT,'share', 'db')
# TMP_DIR = os.path.join(ICM_AGENT_ROOT,'tmp')
# TOOLS_DIR = os.path.join(ICM_AGENT_ROOT,'tools')
# UMITLIB_DIR = os.path.join(ICM_AGENT_ROOT,'umit')


# Path: install_scripts/macosx/setup.py
import os
import sys
import re
import sys
import os
import os.path
import shutil
import shutil
from setuptools import setup
from install_scripts import common
from stat import *
from glob import glob
from distutils.core import setup, Extension, Command
from distutils.command.install import install
from distutils.command.build import build
from distutils.command.sdist import sdist
from distutils import log, dir_util
from umit.icm.agent.Version import VERSION
from install_scripts.common import *
from install_scripts import common










#ROOT_DIR = os.path.abspath(os.path.dirname(__file__))


# py2app requires the values in the app's list to have known extensions, but
# bin/umit doesn't. Here bin/umit is renamed to bin/umit_main.py and the old
# name is stored in common.OLD_UMIT_MAIN so it can be renamed again later.
#shutil.move(common.UMIT_MAIN, common.ICM_AGENT_MAIN + '_main.py')
#common.OLD_UMIT_MAIN = common.ICM_AGENT_MAIN
common.ICM_AGENT_MAIN = os.path.join(common.BIN_DIRNAME, 'icm-agent')




##################### Umit banner #######################################
print
print "%s OpenMonitor Desktop Agent for Mac OS %s %s" % ("#" * 10, VERSION, "#" * 10)
print
#########################################################################

setup(
        name         = 'icm-agent',

        version      =  VERSION,