Skip to content

Add a command-line flag to set the target platform #1988

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

Closed
gvanrossum opened this issue Aug 5, 2016 · 0 comments
Closed

Add a command-line flag to set the target platform #1988

gvanrossum opened this issue Aug 5, 2016 · 0 comments
Labels

Comments

@gvanrossum
Copy link
Member

This is a follow-up task from #698.

This would allow us to type-check code meant for Windows on a Mac, for example. It would control the value assumed by sys.platform. The value should probably be limited to a few values, e.g. darwin for Mac, win32 for Windows, 'linux2' for Linux, and 'freebsd' for, well, Free BSD. (There are a bunch of other possible values too, and maybe we should collect a complete list, but I want to make sure people don't accidentally try to set it to e.g. mac or osx or windows or nt or even plain linux.)

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

No branches or pull requests

2 participants