Menu

#5 support for cygwin

open
nobody
None
5
2003-05-26
2003-05-26
No

Not sure that it will be easy, but there are w32api
package...

Discussion

  • Tony Meyer

    Tony Meyer - 2003-05-26

    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).

     
  • Michael Dubner

    Michael Dubner - 2003-09-03

    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.

     
  • Tony Meyer

    Tony Meyer - 2003-09-03

    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.

     
  • Michael Dubner

    Michael Dubner - 2003-09-17

    Logged In: YES
    user_id=39274

    There are couple of extentions that exists only as cygwin
    versions

     
  • Tony Meyer

    Tony Meyer - 2003-09-17

    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...

     
  • Michael Dubner

    Michael Dubner - 2003-09-29

    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.

     
  • Vasyl Khalak

    Vasyl Khalak - 2013-05-10

    vote up

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.