Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for cygwin #764

Closed
ghost opened this issue May 26, 2003 · 9 comments
Closed

support for cygwin #764

ghost opened this issue May 26, 2003 · 9 comments

Comments

@ghost
Copy link

ghost commented May 26, 2003

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

Reported by: dubnerm

Original Ticket: "pywin32/feature-requests/5":https://sourceforge.net/p/pywin32/feature-requests/5

@ghost
Copy link
Author

ghost commented May 26, 2003

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

Original comment by: anadelonbrin

@ghost
Copy link
Author

ghost commented Sep 3, 2003

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.

Original comment by: dubnerm

@ghost
Copy link
Author

ghost commented Sep 3, 2003

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.

Original comment by: anadelonbrin

@ghost
Copy link
Author

ghost commented Sep 17, 2003

Logged In: YES
user_id=39274

There are couple of extentions that exists only as cygwin
versions

Original comment by: dubnerm

@ghost
Copy link
Author

ghost commented Sep 17, 2003

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

Original comment by: anadelonbrin

@ghost
Copy link
Author

ghost commented Sep 29, 2003

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.

Original comment by: dubnerm

@ghost
Copy link
Author

ghost commented May 10, 2013

vote up

Original comment by: khalak

@ghost ghost assigned ghost and unassigned ghost Oct 24, 2017
@Avasam
Copy link
Collaborator

Avasam commented Mar 16, 2024

Related to #861
Closing in favor of #1378 which has more modern discussions

@Avasam Avasam closed this as completed Mar 16, 2024
@Avasam
Copy link
Collaborator

Avasam commented Mar 16, 2024

Tagging @pyhedgehog as original SourceForge issue Creator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant