Skip to content

bpo-36146: Refactor setup.py #12093

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

Merged
merged 1 commit into from
Feb 28, 2019
Merged

bpo-36146: Refactor setup.py #12093

merged 1 commit into from
Feb 28, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Feb 28, 2019

  • Rename globals to upper case to better distinguish if a variable is
    global or locale:

    • Rename cross_compiling to CROSS_COMPILING
    • Rename host_platform to HOST_PLATFORM
    • Rename disabled_module_list to DISABLED_MODULE_LIST
  • Add MS_WINDOWS, CYGWIN and MACOS constants.

  • Use booleans: replace "return 0" with "return False"
    and replace "return 1" with "return True"

https://bugs.python.org/issue36146

* Rename globals to upper case to better distinguish if a variable is
  global or locale:

  * Rename cross_compiling to CROSS_COMPILING
  * Rename host_platform to HOST_PLATFORM
  * Rename disabled_module_list to DISABLED_MODULE_LIST

* Add MS_WINDOWS, CYGWIN and MACOS constants.
* Use booleans: replace "return 0" with "return False"
  and replace "return 1" with "return True"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants