[Pydev-cvs] awb/src/Python/util build-exe.bat,NONE,1.1 build.bat,NONE,1.1 clean-dist.bat,NONE,1.1 co
Brought to you by:
fabioz
From: Dana M. <dan...@us...> - 2004-08-25 21:03:56
|
Update of /cvsroot/pydev/awb/src/Python/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30772/src/Python/util Added Files: build-exe.bat build.bat clean-dist.bat copy-files.bat setup.py setup2.py Log Message: wholesale commit --- NEW FILE: build.bat --- @ echo off REM Automates the building of a CSMARTer distutils REM installer for Windows. REM Results in a self-extracting zip file which, when REM executed, unzips and installs itself in an existing REM Python\Lib\site-packages directory. REM First collect the files needed into the correct build directories: cd \csmarter\CSMARTer copy c:\csmarter\csmart\src\python\CSMARTer\CSMARTer.bat . cd \csmarter call copy-files.bat REM Now build the installer: python setup.py bdist_wininst REM Sock away the installer just created move/Y C:\csmarter\dist\csmarter*.exe . REM Cleanup call clean-dist.bat --- NEW FILE: build-exe.bat --- @ echo off REM Automates the building of a CSMARTer executable and REM an installer for Windows. REM Results in a directory that contains an executable REM file with supporting files; does not require user to REM have Python, wxPython, or 4Suite installed. REM First collect the files needed into the correct build REM directories: call copy-files.bat REM Now build the executable: cd \csmarter\CSMARTer python setup2.py py2exe --packages encodings --icon csmarter.ico REM Sock away the executable directory just created cd \csmarter rd /S /Q CS03 move C:\csmarter\CSMARTer\dist\CS03 . REM Cleanup call clean-dist.bat cd C:\csmarter\CS03 mkdir CSMARTer cd CSMARTer REM When this script is done, go to C:\csmarter\CS03 using REM Windows Explorer, copy all files and dirs (except REM CSMARTer) into dir CSMARTer. Then right-click REM on the CSMARTer dir, and select "Add to CSMARTer.zip". This REM creates a zip file named CSMARTer.zip in the C:\csmarter\CS03 REM dir. This is the file you will distribute. --- NEW FILE: setup.py --- # Name: setup.py # Purpose: Build a distribution file for CSMARTer # # Author: ISAT (P. Gardella) # # RCS-ID: $Id: setup.py,v 1.1 2004/08/25 21:03:46 dana_virtual Exp $ # <copyright> # Copyright 2002 BBN Technologies, LLC # under sponsorship of the Defense Advanced Research Projects Agency (DARPA). # # This program is free software; you can redistribute it and/or modify # it under the terms of the Cougaar Open Source License as published by # DARPA on the Cougaar Open Source Website (www.cougaar.org). # # THE COUGAAR SOFTWARE AND ANY DERIVATIVE SUPPLIED BY LICENSOR IS # PROVIDED 'AS IS' WITHOUT WARRANTIES OF ANY KIND, WHETHER EXPRESS OR # IMPLIED, INCLUDING (BUT NOT LIMITED TO) ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND WITHOUT # ANY WARRANTIES AS TO NON-INFRINGEMENT. IN NO EVENT SHALL COPYRIGHT # HOLDER BE LIABLE FOR ANY DIRECT, SPECIAL, INDIRECT OR CONSEQUENTIAL # DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE OF DATA OR PROFITS, # TORTIOUS CONDUCT, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THE COUGAAR SOFTWARE. # </copyright> # from distutils.core import setup import py2exe setup(name = "CSMARTer", version = "1.2", description="CSMARTer Society Editing Tool for Cougaar", author="Dana Moore & Paul Gardella, BBN Technologies", author_email="pga...@bb...", url="http://www.cougaar.org", packages = ["CSMARTer", "CSMARTer.ACMEPy"], data_files=[("Lib/site-packages/CSMARTer", ["CSMARTer/CSMARTer.bat", "CSMARTer/csmarter.ico"]), ("Lib/site-packages/CSMARTer/bitmaps", ["CSMARTer/bitmaps/ACME2003.gif"]), ("Lib/site-packages/CSMARTer/data", ["CSMARTer/data/tiny.xml", "CSMARTer/data/tiny_laydownTest.xml", "CSMARTer/data/showTips", "CSMARTer/data/tips.txt"]), ("Lib/site-packages/CSMARTer/docs", ["CSMARTer/docs/README.txt"]), ("Lib/site-packages/CSMARTer/Sample-Rules", ["CSMARTer/Sample-Rules/Override.rul", "CSMARTer/Sample-Rules/rule1.rul", "CSMARTer/Sample-Rules/ruleblaah.rul", "CSMARTer/Sample-Rules/args.rul"])] ) --- NEW FILE: setup2.py --- # Name: setup2.py # Purpose: Build an executable for CSMARTer that permits CSMARTer to # run without requiring Python, wxPython, or 4Suite. # # Author: ISAT (P. Gardella) # # RCS-ID: $Id: setup2.py,v 1.1 2004/08/25 21:03:46 dana_virtual Exp $ # <copyright> # Copyright 2002 BBN Technologies, LLC # under sponsorship of the Defense Advanced Research Projects Agency (DARPA). # # This program is free software; you can redistribute it and/or modify # it under the terms of the Cougaar Open Source License as published by # DARPA on the Cougaar Open Source Website (www.cougaar.org). # # THE COUGAAR SOFTWARE AND ANY DERIVATIVE SUPPLIED BY LICENSOR IS # PROVIDED 'AS IS' WITHOUT WARRANTIES OF ANY KIND, WHETHER EXPRESS OR # IMPLIED, INCLUDING (BUT NOT LIMITED TO) ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND WITHOUT # ANY WARRANTIES AS TO NON-INFRINGEMENT. IN NO EVENT SHALL COPYRIGHT # HOLDER BE LIABLE FOR ANY DIRECT, SPECIAL, INDIRECT OR CONSEQUENTIAL # DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE OF DATA OR PROFITS, # TORTIOUS CONDUCT, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THE COUGAAR SOFTWARE. # </copyright> # from distutils.core import setup import py2exe setup(name = "CSMARTer", version = "1.2", description="CSMARTer Society Editing Tool for Cougaar", author="Dana Moore & Paul Gardella, BBN Technologies", author_email="pga...@bb...", url="http://www.cougaar.org", scripts=["CS03.py"], data_files=[("", ["CSMARTer.bat", "csmarter.ico"]), ("bitmaps", ["bitmaps/ACME2003.gif"]), ("data", ["data/tiny.xml", "data/tiny_laydownTest.xml", "data/showTips", "data/tips.txt"]), ("docs", ["docs/ReleaseNotes", "docs/README.txt"]), ("Sample-Rules", ["Sample-Rules/Override.rul", "Sample-Rules/rule1.rul", "Sample-Rules/ruleblaah.rul", "Sample-Rules/args.rul"])] ) --- NEW FILE: copy-files.bat --- @ echo off REM Assembles CSMARTer files into build directories in REM preparation for building a distribution installer REM or an executable. cd \csmarter\CSMARTer copy c:\csmarter\csmart\src\python\CSMARTer\_*.py . copy c:\csmarter\csmart\src\python\CSMARTer\a*.py . copy c:\csmarter\csmart\src\python\CSMARTer\c*.py . copy c:\csmarter\csmart\src\python\CSMARTer\e*.py . copy c:\csmarter\csmart\src\python\CSMARTer\g*.py . copy c:\csmarter\csmart\src\python\CSMARTer\i*.py . copy c:\csmarter\csmart\src\python\CSMARTer\s*.py . copy c:\csmarter\csmart\src\python\CSMARTer\bitmaps\csmarter.ico . cd ACMEPy copy c:\csmarter\csmart\src\python\ACMEPy\_*.py . copy c:\csmarter\csmart\src\python\ACMEPy\a*.py . copy c:\csmarter\csmart\src\python\ACMEPy\c*.py . copy c:\csmarter\csmart\src\python\ACMEPy\f*.py . copy c:\csmarter\csmart\src\python\ACMEPy\h*.py . copy c:\csmarter\csmart\src\python\ACMEPy\n*.py . copy c:\csmarter\csmart\src\python\ACMEPy\p*.py . copy c:\csmarter\csmart\src\python\ACMEPy\r*.py . copy c:\csmarter\csmart\src\python\ACMEPy\society.py . copy c:\csmarter\csmart\src\python\ACMEPy\society_factory2.py . cd ..\bitmaps copy c:\csmarter\csmart\src\python\CSMARTer\bitmaps\ACME2003.gif . cd ..\data copy C:\csmarter\csmart\src\python\CSMARTer\data\*tips* . copy c:\csmarter\csmart\src\python\ACMEPy\tiny.xml . copy c:\csmarter\csmart\src\python\ACMEPy\tiny_laydownTest.xml . cd ..\docs copy C:\csmarter\csmart\src\python\README.txt . copy C:\csmarter\csmart\src\python\ReleaseNotes . cd ..\Sample-Rules copy C:\csmarter\csmart\src\python\CSMARTer\Sample-Rules\ruleblaah.rul . copy C:\csmarter\csmart\src\python\CSMARTer\Sample-Rules\args.rul . copy C:\csmarter\csmart\src\python\CSMARTer\Sample-Rules\Override.rul . copy C:\csmarter\csmart\src\python\CSMARTer\Sample-Rules\rule1.rul . cd \csmarter --- NEW FILE: clean-dist.bat --- @echo off REM Cleanup directories left over after building REM our distribution installer or executable. rmdir /S /Q C:\csmarter\dist rmdir /S /Q C:\csmarter\build rmdir /S /Q C:\csmarter\CSMARTer\dist rmdir /S /Q C:\csmarter\CSMARTer\build |