[Subversion] / PEAK / setup.py  

Revision 767


Jump to revision:
Previous Next
Author: pje
Date: Sat Nov 30 20:04:51 2002 UTC (21 years, 4 months ago)

Log Message:

Completed conversion to C of the base class descriptor methods for 'Once'
attributes.  Due to constraints in how Pyrex creates extension types, it
was not possible to continue support for the (deprecated anyway) 'OnceClass'
and 'AutoCreatable' metaclasses.  This is now cleaned up pretty decently
and runs the tests at least as fast as before I began the metadata
refactoring yesterday (~4.1 seconds on my Windows PC).

Note that if you want to build from Pyrex source or have Pyrex installed,
you *must* patch Pyrex.Compiler.TypeSlots so that these two lines:

descrgetfunc = Signature("TOO", "O")       # typedef ...
descrsetfunc = Signature("TOO", "O")       # typedef ...

Look like *this* instead:

descrgetfunc = Signature("Tpp", "O")       # typedef ...
descrsetfunc = Signature("TOp", "i")       # typedef ...

This is a work-around for improper generation of descriptor __get__/__set__
code by Pyrex.

Changed paths:

Path Action Text Changes Prop Changes Diff to Previous
PEAK/setup.py modified X   (diff to previous)
PEAK/src/peak/binding/_once.c added X X  
PEAK/src/peak/binding/_once.pyx added X X  
PEAK/src/peak/binding/components.py modified X   (diff to previous)
PEAK/src/peak/binding/data_desc.c deleted      
PEAK/src/peak/binding/data_desc.pyx deleted      
PEAK/src/peak/binding/getdict.c added X X  
PEAK/src/peak/binding/once.py modified X   (diff to previous)
PEAK/src/peak/binding/py_obj.h deleted      

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help