Skip to content

Commit

Permalink
Swap to use cleaner check for py 3.7 or above from @serhiy-storchaka
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbaddog committed Jul 15, 2018
1 parent 502d1da commit 4f43aae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/engine/SCons/Script/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1257,8 +1257,7 @@ def order(dependencies):
is_pypy = platform.python_implementation() == 'PyPy'
# As of 3.7, python removed support for threadless platforms.
# See https://www.python.org/dev/peps/pep-0011/
is_37_or_later = sys.version_info.major > 3 or \
sys.version_info.major == 3 and sys.version_info.minor >= 7
is_37_or_later = sys.version_info >= (3, 7)
python_has_threads = sysconfig.get_config_var('WITH_THREAD') or is_pypy or is_37_or_later
# to check if python configured with threads.
global num_jobs
Expand Down

0 comments on commit 4f43aae

Please sign in to comment.