From: Torsten K. <pyt...@tk...> - 2009-01-28 15:55:36
|
Hi folks, it's been a while since my last update, but today I built some eggs of python-ldap 2.3.5 for Linux i686 and x86_64 and Python versions 2.4 through 2.6. Windows and OS X versions will follow as soon as my respective development environments are up to date and running again. As usual, the eggs can be obtained from http://svn.kmrc.de/download/distribution They are built against OpenLDAP 2.3.43/OpenSSL 0.9.8j/Cyrus SASL 2.1.22 I'm still looking for a satisfactory solution to present an all-in-one package for Windows, containing all necessary dependencies (i.e. OpenLDAP, OpenSSL, Heimdal/MIT-Krb5, ...) Does anyone have a great idea on how to accomplish that (besides giving away a zip file that has to be manually unpacked to a proper location)? Best regards, Torsten -- Life is cheap, but the accessories can kill you. |
From: Torsten K. <pyt...@tk...> - 2009-01-29 08:16:51
|
On Thursday, January 29, 2009 at 03:44 Sidnei da Silva wrote: > <snip, re: distributing Windows deps> >> Does anyone have a great idea on how to accomplish that (besides >> giving away a zip file that has to be manually unpacked to a proper >> location)? > The best way really would be to build it statically. I did manage to > do this *once*, but fail to remember how. I'm sure it is possible > though. Yes, that's definitely a good idea. I'll try to accomplish this. If I'm stuck somewhere, maybe we can explore your memory together? ;-) Best regards, Torsten -- Never make anything simple and efficient when a way can be found to make it complex and wonderful. - Murphy's Law No. 13 - |
From: Waldemar O. <wal...@gm...> - 2009-01-29 19:43:30
|
On Thu, Jan 29, 2009 at 1:17 AM, Torsten Kurbad <pyt...@tk...> wrote: > On Thursday, January 29, 2009 at 03:44 Sidnei da Silva wrote: > >> <snip, re: distributing Windows deps> >>> Does anyone have a great idea on how to accomplish that (besides >>> giving away a zip file that has to be manually unpacked to a proper >>> location)? > >> The best way really would be to build it statically. I did manage to >> do this *once*, but fail to remember how. I'm sure it is possible >> though. > > Yes, that's definitely a good idea. I'll try to accomplish this. If I'm > stuck somewhere, maybe we can explore your memory together? ;-) > FYI To force static build of the extensions I tweak source of distutils/cygwinccompiler.py After lineno 299 I have added: #TODO enable to force static build if False: shared_option = "-mdll -static" and change "False" into "True" whenever I build python-ldap. It seems to work. If you find a more elegant way of doing it please share. Waldemar Osuch http://www.osuch.org |
From: Sidnei da S. <si...@en...> - 2009-01-30 13:14:53
|
On Thu, Jan 29, 2009 at 5:43 PM, Waldemar Osuch <wal...@gm...> wrote: > On Thu, Jan 29, 2009 at 1:17 AM, Torsten Kurbad > <pyt...@tk...> wrote: >> On Thursday, January 29, 2009 at 03:44 Sidnei da Silva wrote: >>> The best way really would be to build it statically. I did manage to >>> do this *once*, but fail to remember how. I'm sure it is possible >>> though. >> >> Yes, that's definitely a good idea. I'll try to accomplish this. If I'm >> stuck somewhere, maybe we can explore your memory together? ;-) >> > > To force static build of the extensions I tweak source of > distutils/cygwinccompiler.py > After lineno 299 I have added: > > #TODO enable to force static build > if False: > shared_option = "-mdll -static" > > and change "False" into "True" whenever I build python-ldap. > It seems to work. > > If you find a more elegant way of doing it please share. Yes, that rings a bell. I think I managed to pass those flags manually without hacking the distutils source, but that's exactly what needs to be done. Thanks for refreshing my memory! -- Sidnei da Silva |
From: Michael S. <mi...@st...> - 2009-01-30 13:31:35
|
Sidnei da Silva wrote: > On Thu, Jan 29, 2009 at 5:43 PM, Waldemar Osuch > <wal...@gm...> wrote: >> On Thu, Jan 29, 2009 at 1:17 AM, Torsten Kurbad >> <pyt...@tk...> wrote: >>> On Thursday, January 29, 2009 at 03:44 Sidnei da Silva wrote: >>>> The best way really would be to build it statically. I did manage to >>>> do this *once*, but fail to remember how. I'm sure it is possible >>>> though. >>> Yes, that's definitely a good idea. I'll try to accomplish this. If I'm >>> stuck somewhere, maybe we can explore your memory together? ;-) >>> >> To force static build of the extensions I tweak source of >> distutils/cygwinccompiler.py >> After lineno 299 I have added: >> >> #TODO enable to force static build >> if False: >> shared_option = "-mdll -static" >> >> and change "False" into "True" whenever I build python-ldap. >> It seems to work. >> >> If you find a more elegant way of doing it please share. > > Yes, that rings a bell. I think I managed to pass those flags manually > without hacking the distutils source, but that's exactly what needs to > be done. Feel free to post a patch to setup.py / setup.cfg which does that. Ciao, Michael. |