#!/usr/bin/env python """ WAM container distutils installation script. """ # Copyright 2008-2011 eGovMon # This program is distributed under the terms of the GNU General # Public License. # # This file is part of the eGovernment Monitoring # (eGovMon) # # eGovMon is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # eGovMon 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with eGovMon; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, # MA 02110-1301 USA __author__ = "Anand B Pillai" __updated__ = "$LastChangedDate$" __version__ = "$Id: setup.py 1974 2006-08-28 20:50:05Z abp $" import sys import os from distutils.core import setup fail = False def run_tests(): global fail import test for res in test.result: if res[0] > 0: fail = True if fail: print 'One of more tests failed. Installation will stop.' else: print 'Test ran successful.' try: run_tests() except ImportError, e: print e print 'Required modules not found for test, assuming you are doing a fresh installation' except AttributeError, e: print e if not fail and 'install' in sys.argv: setup(name = "wamlib", version="0.1", description="WAM libraries.", author="eGovernment Monitoring", author_email="maintainer@egovmon.no", url="http://www.egovmon.no", py_modules=['pdfbwam_wcag','pdfmwam','report', 'wamlogger', 'AbstractWAM', 'bwam','autobwam','WAM_Results','earl', 'wam_container', 'StopIteration','wamerror', 'timeprofile', 'pdfbwam','pdfmwam', 'version'])