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

Document PYTHON_CROSSENV variable #33

Closed
virtuald opened this issue Sep 14, 2020 · 2 comments
Closed

Document PYTHON_CROSSENV variable #33

virtuald opened this issue Sep 14, 2020 · 2 comments

Comments

@virtuald
Copy link
Contributor

My setup.py conditionally runs an executable -- when cross compiling, it turns it off. I was looking for _PYTHON_HOST_PLATFORM, but crossenv deletes that?

Now I'm checking for PYTHON_CROSSENV... but I'd be happier if it were a documented way to detect crossenv.

@benfogle
Copy link
Owner

Crossenv also sets sys.cross_compiling, which can be used like if getattr(sys, 'cross_compiling', False): ...

Either one of those should work for you, but you're absolutely right: both of those should be documented.

@benfogle
Copy link
Owner

Closed by #59

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

No branches or pull requests

2 participants