-
Notifications
You must be signed in to change notification settings - Fork 646
Support Windows platform #311
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. |
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: