Why would you need support for cygwin? If you're running
cygwin, then you have Windows, so you can use the
standard extensions, can't you? (seems to work for me).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I realise that, but my point was that you're on windows, so
you can use a windows version of Python if you want to do
windows things. If you want to do *nix'y sort of things, then
use the cygwin version. You can still run the windows python
in cygwin.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Could you not, then, port those extensions? Or use both the
cygwin python and the windows one, running as separate
processes and working together? Seems a lot simpler than
porting all the win32all stuff over to cygwin...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not sure. At last w32api cygwin package is compatible by
signatures with MS library (as it uses same dlls!).
Also I've just created oversimplified wrapper (with only
functions used by anygui.backends.mswgui) with PyRex.
Something like:
--- win32api.pyx:
cdef extern from "windows.h":
ctypedef unsigned int UINT
int w32_Beep "Beep" (UINT dwFreq, UINT dwDuration)
def Beep(UINT freq, UINT dur):
return w32_Beep(freq, dur)
--- setup.py
...
Extension("win32api", ["win32api.pyx"]),
...
---
and what startled me it works under both VC and cygwin.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=552329
Why would you need support for cygwin? If you're running
cygwin, then you have Windows, so you can use the
standard extensions, can't you? (seems to work for me).
Logged In: YES
user_id=39274
Standard extentions can't work with cygwin version of python
and visa-versa cygwin extentions can't work with windows
version of python.
Logged In: YES
user_id=552329
I realise that, but my point was that you're on windows, so
you can use a windows version of Python if you want to do
windows things. If you want to do *nix'y sort of things, then
use the cygwin version. You can still run the windows python
in cygwin.
Logged In: YES
user_id=39274
There are couple of extentions that exists only as cygwin
versions
Logged In: YES
user_id=552329
Could you not, then, port those extensions? Or use both the
cygwin python and the windows one, running as separate
processes and working together? Seems a lot simpler than
porting all the win32all stuff over to cygwin...
Logged In: YES
user_id=39274
Not sure. At last w32api cygwin package is compatible by
signatures with MS library (as it uses same dlls!).
Also I've just created oversimplified wrapper (with only
functions used by anygui.backends.mswgui) with PyRex.
Something like:
--- win32api.pyx:
cdef extern from "windows.h":
ctypedef unsigned int UINT
int w32_Beep "Beep" (UINT dwFreq, UINT dwDuration)
def Beep(UINT freq, UINT dur):
return w32_Beep(freq, dur)
--- setup.py
...
Extension("win32api", ["win32api.pyx"]),
...
---
and what startled me it works under both VC and cygwin.
vote up