-
Notifications
You must be signed in to change notification settings - Fork 18
Support Windows platform #47
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
Comments
Thank you for reporting this! If you comment out fdopen() in lib/os/__init__.py and the other usages, does everything else compile?
Unfortunately, there's no easy way at present to do platform-specific compilation of the Python sources in the stdlib. The trouble is that the native imports ( |
no, after commenting out all codes with $ make
build/src/__python__/os/module.go:253: undefined: syscall.SYS_FCNTL
build/src/__python__/os/module.go:261: undefined: syscall.F_GETFD
make: *** [build/stdlib.mk:1453: build/pkg/windows_amd64/__python__/os.a] Error 1 |
Sorry, I meant comment out all the fdopen usages so you can then remove the syscall imports that are causing problems in lib/os/__init__.py. |
ok, it works now. |
Cool, thanks for confirming. With the work I'm doing on sockets I think there will be additional platform specific code that will probably break Windows, so it'd be good to start figuring out how we can properly support multiple platforms. The easiest option off the top of my head is to have a grumpy.platform (name TBD) Go package that has platform-specific source files that provides a consistent interface for things like sockets and file descriptor operations. |
google#311 opened by @retsyo on May 18, 2017
I am using mingw32 with msys2 on windows
So, any way to let grumpy support windows? Thanks
USR@USR-PC MINGW32 /r/grumpy-master $ make build/src/__python__/os/module.go:257: undefined: syscall.SYS_FCNTL build/src/__python__/os/module.go:265: undefined: syscall.F_GETFD make: *** [build/stdlib.mk:1453: build/pkg/windows_amd64/__python__/os.a] Error 1
The text was updated successfully, but these errors were encountered: