## # Some (yeh, pretty much really) of the code included in this script is # borrowed from Django's setup.py file. # # Django project homepage: http://djangoproject.com ## from distutils.core import setup from distutils.command.install_data import install_data from distutils.command.install import INSTALL_SCHEMES import os import sys from smac import get_version version = get_version() def get_download_url(version): release = "SMAC_Core-%s.tar.gz" % version return 'http://smac.webhop.org/releases/%s' % release class osx_install_data(install_data): def finalize_options(self): self.set_undefined_options('install', ('install_lib', 'install_dir')) install_data.finalize_options(self) if sys.platform == "darwin": cmdclasses = {'install_data': osx_install_data} else: cmdclasses = {'install_data': install_data} def fullsplit(path, result=None):
def opt_version(self): import smac print "SMAC core version: %s" % smac.get_version() sys.exit(0)