From: <mcf...@us...> - 2003-07-01 04:51:28
|
Update of /cvsroot/pydispatcher/dispatch In directory sc8-pr-cvs1:/tmp/cvs-serv10468 Modified Files: setup.py Log Message: Eliminated some unused mechanisms, added the beginning of a PyPI registration set, though it doesn't appear to work at the moment. Index: setup.py =================================================================== RCS file: /cvsroot/pydispatcher/dispatch/setup.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** setup.py 1 Jul 2003 04:16:13 -0000 1.1 --- setup.py 1 Jul 2003 04:51:25 -0000 1.2 *************** *** 10,57 **** import sys,os, string from distutils.sysconfig import * ! from distutils.core import setup,Extension ! from distutils.command.build_ext import build_ext ! from distutils.command.install import install ! from distutils.command.install_data import install_data ! ##from my_install_data import * - ############## - ## Following is from Pete Shinners, - ## apparently it will work around the reported bug on - ## some unix machines where the data files are copied - ## to weird locations if the user's configuration options - ## were entered during the wrong phase of the moon :) . - from distutils.command.install_data import install_data - class smart_install_data(install_data): - def run(self): - #need to change self.install_dir to the library dir - install_cmd = self.get_finalized_command('install') - self.install_dir = getattr(install_cmd, 'install_lib') - # should create the directory if it doesn't exist!!! - return install_data.run(self) - ############## - ### The following automates the inclusion of files while avoiding problems with UNIX - ### where case sensitivity matters. - dataFiles = [] - excludedTypes = ('.py','.pyc','.pyo', '.db', '.max','.gz','.bat') - def nonPythonFile( file ): - if string.lower( file ) == 'cvs': - return 0 - else: - return (os.path.splitext( file )[1]).lower() not in excludedTypes - dataDirectories = [ - '.', - 'tests', - ] - for directory in dataDirectories: - finalFiles = [] - for file in os.listdir( directory): - fullFile = os.path.join( directory, file ) - if os.path.isfile(fullFile) and nonPythonFile(fullFile): - finalFiles.append (os.path.join(directory, file)) - if finalFiles: - dataFiles.append ( - (os.path.join('dispatch',directory),finalFiles) - ) ### Now the actual set up call setup ( --- 10,15 ---- import sys,os, string from distutils.sysconfig import * ! from distutils.core import setup ### Now the actual set up call setup ( *************** *** 73,78 **** ], # non python files of examples ! data_files = dataFiles, ! cmdclass = {'install_data':smart_install_data}, ) --- 31,60 ---- ], # non python files of examples ! options = { ! 'sdist':{'use_defaults':0, 'force_manifest':1}, ! 'bdist_rpm':{ ! 'group':'Libraries/Python', ! 'provides':'python-dispatcher', ! 'requires':"python", # >=2.2 ! }, ! 'register':{ ! #'keywords': 'dispatcher,dispatch,event,signal,sender,receiver,propagate,multi-consumer,multi-producer', ! #'summary':'Multi-producer-multi-consumer signal routing mechanism', ! 'description':"""Dispatcher mechanism for creating event models ! ! PyDispatcher is an enhanced version of Patrick K. O'Brien's ! original dispatcher.py module. It provides the Python ! programmer with a robust mechanism for event routing within ! various application contexts. ! """, ! 'classifiers': [ ! """License :: OSI Approved :: BSD License""", ! """Programming Language :: Python""", ! """Topic :: Software Development :: Libraries :: Python Modules""", ! """Intended Audience :: Developers""", ! ], ! #'download_url': "https://sourceforge.net/project/showfiles.php?group_id=79755", ! }, ! }, ) |