Preparing release 2.3.1

Alain Spineux aspineux at gmail.com
Tue Jul 17 15:59:29 CEST 2007


Hi again

Could you add a note about how to build an egg at the end of INSALL file ?
To avoid to spend 10min looking for the correct syntax in the
setuptools documentation :-)

python setup.py  bdist_egg

thanks

On 7/17/07, Alain Spineux <aspineux at gmail.com> wrote:
> I did this, and it looks to be working.
> Also with my unicode extension :-)
>
>
> diff -r -c python-ldap-2.3.1/Modules/constants.c python-ldap/Modules/constants.c
> *** python-ldap-2.3.1/Modules/constants.c       Tue Jun  5 11:56:15 2007
> --- python-ldap/Modules/constants.c     Tue Jul 17 15:26:14 2007
> ***************
> *** 263,266 ****
> --- 263,270 ----
>         PyDict_SetItemString( d, "LDAP_CONTROL_PAGE_OID", obj );
>         Py_DECREF(obj);
>
> +       obj = PyString_FromString(LDAP_CONTROL_VALUESRETURNFILTER);
> +       PyDict_SetItemString( d, "LDAP_CONTROL_VALUESRETURNFILTER", obj );
> +       Py_DECREF(obj);
> +
>   }
>
>
>
> On 7/17/07, Alain Spineux <aspineux at gmail.com> wrote:
> > Hi
> > I tried the CVS head and got problem
> >
> > First I got this error when building the egg
> >
> > cc: unrecognized option '-R/usr/local/openldap-2.3/lib'
> >
> > The full command is
> >
> > /kolab/bin/cc -pthread -shared
> > build/temp.linux-i686-2.4/Modules/LDAPObject.o
> > build/temp.linux-i686-2.4/Modules/ldapcontrol.o
> > build/temp.linux-i686-2.4/Modules/common.o
> > build/temp.linux-i686-2.4/Modules/constants.o
> > build/temp.linux-i686-2.4/Modules/errors.o
> > build/temp.linux-i686-2.4/Modules/functions.o
> > build/temp.linux-i686-2.4/Modules/schema.o
> > build/temp.linux-i686-2.4/Modules/ldapmodule.o
> > build/temp.linux-i686-2.4/Modules/message.o
> > build/temp.linux-i686-2.4/Modules/version.o
> > build/temp.linux-i686-2.4/Modules/options.o
> > -L/usr/local/openldap-2.3/lib -R/usr/local/openldap-2.3/lib -lldap_r
> > -llber -lsasl2 -lssl -lcrypto -o build/lib.linux-i686-2.4/_ldap.so
> >
> > I removed the references to /usr/local/openldap-2.3/ in setup.cfg and
> > got and egg, I installed
> > the egg and removed any old file from site packages
> >
> > rm -rf dsml.py   dsml.pyo    ldapurl.pyc  ldif.py   ldif.pyo dsml.pyc
> > ldapurl.py  ldapurl.pyo  ldif.pyc ldap/
> >
> > I got the fologing error when starting my project:
> >
> > Traceback (most recent call last):
> >   File "./start-emailgency.py", line 53, in ?
> >     from emailgency.controllers import Root
> >   File "/s0/asx/src/emailgency/trunk/emailgency/controllers.py", line 8, in ?
> >     import main_ctrl, pas_sub_ctrl, addr_ctrl, common_ctrl
> >   File "/s0/asx/src/emailgency/trunk/emailgency/main_ctrl.py", line 12, in ?
> >     from emailgency import json, eg_dns, eg_mail, rrdtoolx, egsyslib, eg_config
> >   File "/s0/asx/src/emailgency/trunk/emailgency/egsyslib.py", line 8, in ?
> >     from eg_kolab_lib import KolabConnection
> >   File "/s0/asx/src/emailgency/trunk/emailgency/eg_kolab_lib.py", line 4, in ?
> >     import ldap, ldap.modlist, ldapurl
> >   File "/kolab/lib/python/site-packages/python_ldap-2.3.1-py2.4-linux-i686.egg/ldap/__init__.py",
> > line 48, in ?
> >     from functions import open,initialize,init,get_option,set_option
> >   File "/kolab/lib/python/site-packages/python_ldap-2.3.1-py2.4-linux-i686.egg/ldap/functions.py",
> > line 36, in ?
> >     from ldap.ldapobject import LDAPObject
> >   File "/kolab/lib/python/site-packages/python_ldap-2.3.1-py2.4-linux-i686.egg/ldap/ldapobject.py",
> > line 40, in ?
> >     from ldap.controls import
> > LDAPControl,DecodeControlTuples,EncodeControlTuples
> >   File "/kolab/lib/python/site-packages/python_ldap-2.3.1-py2.4-linux-i686.egg/ldap/controls.py",
> > line 85, in ?
> >     class MatchedValuesControl(LDAPControl):
> >   File "/kolab/lib/python/site-packages/python_ldap-2.3.1-py2.4-linux-i686.egg/ldap/controls.py",
> > line 93, in MatchedValuesControl
> >     controlType = ldap.LDAP_CONTROL_VALUESRETURNFILTER
> > AttributeError: 'module' object has no attribute
> > 'LDAP_CONTROL_VALUESRETURNFILTER'
> >
> > any idea ?
> >
> > On 7/16/07, Michael Ströder <michael at stroeder.com> wrote:
> > > HI!
> > >
> > > I'd like to release 2.3.1 soon. There are some interesting improvements
> > > in HEAD but not yet released. Therefore testing of HEAD is needed.
> > > Thanks to the contributors!
> > >
> > > Please provide feedback ideally on the mailing list. Thanks.
> > >
> > > Ciao, Michael.
> > >
> > > Current CHANGES:
> > >
> > > Released 2.3.1 2007-07-xx
> > >
> > > Changes since 2.3.0:
> > >
> > > * Support for setuptools (building .egg, thanks to Torsten)
> > > * Support for matched values control (RFC 3876, thanks to Andreas)
> > >
> > > Lib/
> > > * Fixed ldif (see SF#1709111, thanks to Dmitry)
> > >
> > > Modules/
> > > * Added constant MOD_INCREMENT to support
> > >   modify+increment extension (see RFC 4525, thanks to Andreas)
> > >
> > > 


More information about the python-ldap mailing list