mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Fixed for python3
This commit is contained in:
parent
a688b74b56
commit
ae62f87f87
2
setup.py
2
setup.py
@ -155,7 +155,7 @@ class CMakeBuild(build_ext):
|
||||
subprocess.check_call(cmake_build, cwd=build_folder)
|
||||
|
||||
def num_available_cpu_cores(ram_per_build_process_in_gb):
|
||||
if os.environ.has_key('TRAVIS') and os.environ['TRAVIS']=='true':
|
||||
if 'TRAVIS' in os.environ and os.environ['TRAVIS']=='true':
|
||||
# When building on travis-ci, just use 2 cores since travis-ci limits
|
||||
# you to that regardless of what the hardware might suggest.
|
||||
return 2
|
||||
|
Loading…
Reference in New Issue
Block a user