|
From: <ki...@us...> - 2003-05-09 01:36:50
|
Update of /cvsroot/pymerase/pymerase
In directory sc8-pr-cvs1:/tmp/cvs-serv16005
Modified Files:
setup.py
Log Message:
added win32 default paths
Index: setup.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/setup.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** setup.py 16 Apr 2003 20:21:23 -0000 1.6
--- setup.py 9 May 2003 01:36:44 -0000 1.7
***************
*** 1,145 ****
! #!/usr/bin/env python
! ###########################################################################
! # #
! # C O P Y R I G H T N O T I C E #
! # Copyright (c) 2002 by: #
! # * California Institute of Technology #
! # #
! # All Rights Reserved. #
! # #
! # Permission is hereby granted, free of charge, to any person #
! # obtaining a copy of this software and associated documentation files #
! # (the "Software"), to deal in the Software without restriction, #
! # including without limitation the rights to use, copy, modify, merge, #
! # publish, distribute, sublicense, and/or sell copies of the Software, #
! # and to permit persons to whom the Software is furnished to do so, #
! # subject to the following conditions: #
! # #
! # The above copyright notice and this permission notice shall be #
! # included in all copies or substantial portions of the Software. #
! # #
! # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, #
! # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF #
! # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND #
! # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS #
! # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN #
! # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN #
! # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE #
! # SOFTWARE. #
! ###########################################################################
! #
! # Authors: Brandon King
! # Last Modified: $Date$
! #
!
! from distutils.core import setup
! from distutils.core import Extension
! import glob
! import shutil
! import os
! import sys
!
! from ParseCVS import CvsTreeUtil
!
! util = CvsTreeUtil()
!
!
! ########################################
! # Setup Configuration
! PACKAGES=["pymerase",
! "pymerase.input",
! "pymerase.util",
! "pymerase.output",
! "pymerase.output.dbAPI",
! "pymerase.output.webUtil",
! "pymerase.output.webUtil.templates",
! "pymerase.output.PyTkWidgets",
! "pymerase.output.PyTkWidgets.lib",
! "pymerase.output.PythonAPI"]
!
!
!
! ########################################
! # Process Commandline Args
!
! #list of items to remove from sys.argv when done
! rmList = []
!
! #set prefix to None for later error checking
! binPath = None
! docPath = None
!
! #look for custom command line args
! for item in sys.argv:
! #If prefix command line arg exists, set new prefix and mark
! # item to be removed from sys.argv
! if item[:10] == '--binPath=':
! binPath = item[10:]
! rmList.append(item)
!
! if item[:10] == '--docPath=':
! docPath = item[10:]
! rmList.append(item)
!
! #Remove processed items from sys.argv
! for item in rmList:
! sys.argv.remove(item)
!
! print sys.argv
! #If user overrides command line args, then don't need to
! # use logic to figure them out.
! ##BIN PATH##
! if binPath is None:
! #Set default for linux 2.x systems
! if sys.platform == 'linux2':
! binPath = '/usr/bin'
! #set default for all others
! #FIXME: should add more defaults
! #NOTE: can override with command line
! else:
! binPath = 'pymerase'
!
! ##DOC PATH##
! if docPath is None:
! #Set default for linux 2.x systems
! if sys.platform == 'linux2':
! docPath = '/usr/share/doc/pymerase'
! #set default for all others
! #FIXME: should add more defaults
! #NOTE: can override with command line
! else:
! docPath = 'pymerase'
!
! #################################
! # Setup Data Files
! BIN_TUPLE=(binPath,
! ['bin/pymerase', 'bin/pymerasegui.py'])
!
! README_TUPLE=(docPath, ['README', 'INSTALL'])
!
! # ignore this until someone fixes it.
! #WEBUTIL_TEMPLATES_TUPLE=(os.path.join(prefix, 'templates/webUtil'),
! # glob.glob("pymerase/output/webUtil/templates/*.html"))
!
! DATA_FILES=[BIN_TUPLE,
! README_TUPLE,
! # WEBUTIL_TEMPLATES_TUPLE
! ]
!
! #util (CvsTreeUtil) will setup all files checked into cvs
! # for the examples directory...
! DATA_FILES.extend(util.getSetupDataFiles(docPath, 'examples'))
! #FIXME: Grabs .cvsignore files, need to add filter
!
!
! #Run setup! =o)
! setup(name="Pymerase",
! version="0.1",
! description="Pymerase is a tool intended to generate a python " \
! "object model, relational database, and an object-relational " \
! "model connecting the two.",
! author="Diane Trout",
! author_email="di...@ca...",
! url="http://pymerase.sf.net/",
! packages=PACKAGES,
! data_files=DATA_FILES)
--- 1,150 ----
! #!/usr/bin/env python
! ###########################################################################
! # #
! # C O P Y R I G H T N O T I C E #
! # Copyright (c) 2002 by: #
! # * California Institute of Technology #
! # #
! # All Rights Reserved. #
! # #
! # Permission is hereby granted, free of charge, to any person #
! # obtaining a copy of this software and associated documentation files #
! # (the "Software"), to deal in the Software without restriction, #
! # including without limitation the rights to use, copy, modify, merge, #
! # publish, distribute, sublicense, and/or sell copies of the Software, #
! # and to permit persons to whom the Software is furnished to do so, #
! # subject to the following conditions: #
! # #
! # The above copyright notice and this permission notice shall be #
! # included in all copies or substantial portions of the Software. #
! # #
! # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, #
! # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF #
! # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND #
! # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS #
! # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN #
! # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN #
! # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE #
! # SOFTWARE. #
! ###########################################################################
! #
! # Authors: Brandon King
! # Last Modified: $Date$
! #
!
! from distutils.core import setup
! from distutils.core import Extension
! import glob
! import shutil
! import os
! import sys
!
! from ParseCVS import CvsTreeUtil
!
! util = CvsTreeUtil()
!
!
! ########################################
! # Setup Configuration
! PACKAGES=["pymerase",
! "pymerase.input",
! "pymerase.util",
! "pymerase.output",
! "pymerase.output.dbAPI",
! "pymerase.output.webUtil",
! "pymerase.output.webUtil.templates",
! "pymerase.output.PyTkWidgets",
! "pymerase.output.PyTkWidgets.lib",
! "pymerase.output.PythonAPI"]
!
!
!
! ########################################
! # Process Commandline Args
!
! #list of items to remove from sys.argv when done
! rmList = []
!
! #set prefix to None for later error checking
! binPath = None
! docPath = None
!
! #look for custom command line args
! for item in sys.argv:
! #If prefix command line arg exists, set new prefix and mark
! # item to be removed from sys.argv
! if item[:10] == '--binPath=':
! binPath = item[10:]
! rmList.append(item)
!
! if item[:10] == '--docPath=':
! docPath = item[10:]
! rmList.append(item)
!
! #Remove processed items from sys.argv
! for item in rmList:
! sys.argv.remove(item)
!
! print sys.argv
! #If user overrides command line args, then don't need to
! # use logic to figure them out.
! ##BIN PATH##
! if binPath is None:
! #Set default for linux 2.x systems
! if sys.platform == 'linux2':
! binPath = '/usr/bin'
! #set default for all others
! #FIXME: should add more defaults
! #NOTE: can override with command line
! elif sys.platform == 'win32':
! binPath = 'C:\\Program Files\\Pymerase\\bin'
! else:
! binPath = 'pymerase'
!
!
! ##DOC PATH##
! if docPath is None:
! #Set default for linux 2.x systems
! if sys.platform == 'linux2':
! docPath = '/usr/share/doc/pymerase'
! #set default for all others
! #FIXME: should add more defaults
! #NOTE: can override with command line
! elif sys.platform == 'win32':
! docPath = 'C:\\Program Files\\Pymerase\\docs'
! else:
! docPath = 'pymerase'
!
! #################################
! # Setup Data Files
! BIN_TUPLE=(binPath,
! ['bin/pymerase', 'bin/pymerasegui.py'])
!
! README_TUPLE=(docPath, ['README', 'INSTALL'])
!
! # ignore this until someone fixes it.
! #WEBUTIL_TEMPLATES_TUPLE=(os.path.join(prefix, 'templates/webUtil'),
! # glob.glob("pymerase/output/webUtil/templates/*.html"))
!
! DATA_FILES=[BIN_TUPLE,
! README_TUPLE,
! # WEBUTIL_TEMPLATES_TUPLE
! ]
!
! #util (CvsTreeUtil) will setup all files checked into cvs
! # for the examples directory...
! DATA_FILES.extend(util.getSetupDataFiles(docPath, 'examples'))
! #FIXME: Grabs .cvsignore files, need to add filter
!
!
! #Run setup! =o)
! setup(name="Pymerase",
! version="0.1",
! description="Pymerase is a tool intended to generate a python " \
! "object model, relational database, and an object-relational " \
! "model connecting the two.",
! author="Diane Trout",
! author_email="di...@ca...",
! url="http://pymerase.sf.net/",
! packages=PACKAGES,
! data_files=DATA_FILES)
|