Here are 3 short setup.py scripts for various bits of Zope. Two of them don't fully work yet due to bugs in the current CVS of distutils; the problems have been reported and should be fixed in a day or two. 'XXX' marks fields that I didn't fill in. First, lib/python/setup.py; currently this just installs zLOG.py: # Setup file for zLOG from distutils.core import setup setup(name = "zLOG", version = "XXX", description = "XXX", author = "Jim Fulton", author_email = "XXX", url = "XXX", py_modules = ['zLOG'] ) Second, lib/Components/ExtensionClass. I'm not sure which of the modules actually need to be installed. ExtensionClass.h gets installed in the wrong place (/usr/include/python/1.6 instead of .../python1.6); this is one of the reported bugs. # Setup file for ExtensionClass from distutils.core import setup from distutils.extension import Extension # XXX which of these should really be installed? ExtensionClass = Extension(name = 'ExtensionClass', sources= ['ExtensionClass.c'] ) Acquisition = Extension(name = 'Acquisition', sources = ['Acquisition.c']) MethodObject = Extension(name = 'MethodObject', sources = ['MethodObject.c']) Missing = Extension(name = 'Missing', sources=['Missing.c'] ) MultiMapping = Extension(name = 'MultiMapping', sources=['MultiMapping.c'] ) ThreadLock = Extension(name = 'ThreadLock', sources=['ThreadLock.c'] ) setup(name = "ExtensionClass", version = "XXX", description = "XXX", author = "Jim Fulton", author_email = "XXX", url = "XXX", ext_modules = [ExtensionClass, Acquisition, MethodObject, Missing, MultiMapping, ThreadLock], headers = ["ExtensionClass.h"] ) Finally, lib/python/ZODB/setup.py. The define_macros setting doesn't work either, the second bug. # Setup file for ZODB package from distutils.core import setup from distutils.extension import Extension # XXX which of these should really be installed? cPersistence = Extension(name = 'ZODB.cPersistence', include_dirs=['../ExtensionClass/'], sources= ['cPersistence.c'] ) cPickleCache = Extension(name = 'ZODB.cPickleCache', include_dirs=['../ExtensionClass/'], sources= ['cPickleCache.c'] ) TimeStamp = Extension(name = 'ZODB.TimeStamp', # XXX define_macros doesn't currently work define_macros = ['USE_EXTENSION_CLASS'], include_dirs=['../ExtensionClass/'], sources= ['TimeStamp.c'] ) coptimizations = Extension(name = 'ZODB.coptimizations', include_dirs=['../ExtensionClass/'], sources= ['coptimizations.c'] ) winlock = Extension(name = 'ZODB.winlock', sources = ['winlock.c']) setup(name = "ZODB", version = "XXX", description = "XXX", author = "Jim Fulton", author_email = "XXX", url = "XXX", packages=['ZODB'], package_dir = {'ZODB':'.'}, ext_modules = [cPersistence, cPickleCache, TimeStamp, coptimizations, winlock] ) --amk
I'm lost on what these scripts do, do they let you distribute ZODB in a standalone fasion? Do you have an example of that distribution based on, say 2.2b? "A.M. Kuchling" wrote:
Here are 3 short setup.py scripts for various bits of Zope. Two of them
-- -Michel Pelletier http://www.zope.org/Members/michel/MyWiki Visit WikiCentral for the latest Zen: http://www.zope.org/Members/WikiCentral
On Fri, Jun 16, 2000 at 12:21:12PM -0700, Michel Pelletier wrote:
I'm lost on what these scripts do, do they let you distribute ZODB in a standalone fasion? Do you have an example of that distribution based on, say 2.2b?
Correct; you can run "python setup.py install" to install, say, the ZODB package, or ExtensionClass. I didn't bother to make tar files containing ZODB + setup.py, because there seemed little point in me doing that. The aim is to make it possible to distribute just ExtensionClass, or just the ZODB. -- A.M. Kuchling http://starship.python.net/crew/amk/ I confidently expect it to be a fairly resounding failure. -- John Cleese, on the Monty Python reunion planned for 1999
participants (3)
-
A.M. Kuchling -
Andrew M. Kuchling -
Michel Pelletier