I noticed that the Python distribution with Cygwin does not include the
win32 extensions. The only distribution I can find for them is a
Windows executible, which does not seem to know about Cygwin.
Can these libraries be loaded under Cygwin? Do they even work under
Cygwin? Can somebody point me toward how to load them if it is
possible?
Thanks in advance.
Tom
--
------------------------------------------------------------------------
Tom Wiencko t...@wiencko.com
President - Wiencko & Associates, Inc. (404) 255-2330
Telecom Consulting & Project Development -- Wireline, Wireless, Internet
> There may be an easy answer for this, but I have not yet found it...
>
> I noticed that the Python distribution with Cygwin does not include the
> win32 extensions. The only distribution I can find for them is a
> Windows executible, which does not seem to know about Cygwin.
thats the official page of win32all:
http://starship.python.net/crew/mhammond/
the binary version is compiled for the official python.org interpreter.
> Can these libraries be loaded under Cygwin? Do they even work under
> Cygwin? Can somebody point me toward how to load them if it is
> possible?
the sources are available from the page above. maybe you can manage to
compile it with cygwin for cygwin python. don't know if that is easy...
chris
--
Chris <clie...@gmx.net>
I'm guessing that it would be easier to compile the win32all extensions
under mingw32 than under cygwin, because the former (IIRC) uses Microsoft
libraries, whereas the latter uses special libraries to give a modicum of
Posix compatibility.
It probably won't be impossible. I have compiled simpler extensions like
mxODBC and MySQLdb under cygwin with minor problems (that should go away, as
results were fed back to package authors). But don't expect a cygwin port to
be a simple recompile...
regards
Steve
--
-----------------------------------------------------------------------
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
-----------------------------------------------------------------------
No (*).
> > > Do they even work under Cygwin?
No (*). They were built against a completely different Python --
Win32 Python.
> > > Can somebody point me toward how to load them if it is possible?
One would have to build them first. See below...
> But don't expect a cygwin port to be a simple recompile...
Agreed...
Besides converting MSVC workspaces/projects into Makefiles and dealing
with normal platform porting issues there are also ABI issues that
will make the porting of win32com even more challenging. Unless, one
compiles using the gcc "-fnative-struct" option, it will require source
level changes to get COM to work. IIRC, *everything* (e.g., the Cygwin
DLL, Python, win32com, etc.) must be compiled with "-fnative-struct"
or nothing. So, until Cygwin gcc defaults to "-fnative-struct", I think
this effort may be doomed. :,(
Nevertheless, I would *love* to be able to use win32com under Cygwin
Python. It has been on my list to try since I first got shared extensions
to work under Cygwin Python. If anyone would like to collaborate, please
let me know. If successful, I would definitely include win32com in the
standard Cygwin Python package.
Jason
(*) Or, at least I doubt it.
I would love to help out in such a project, but I took a solemn oath
10 years ago to never work with Windows libraries. I had so hoped that
someone else had already ventured into that valley of death so I would
not have to.
I think I'll figure out another way. Thanks for the response.
-Tom
--