SCons: Fix python3 compat for builtin_bullet=no
(cherry picked from commit 44f1b390a3
)
This commit is contained in:
parent
4889c65922
commit
b502152195
|
@ -147,7 +147,7 @@ def configure(env):
|
||||||
# We need at least version 2.88
|
# We need at least version 2.88
|
||||||
import subprocess
|
import subprocess
|
||||||
bullet_version = subprocess.check_output(['pkg-config', 'bullet', '--modversion']).strip()
|
bullet_version = subprocess.check_output(['pkg-config', 'bullet', '--modversion']).strip()
|
||||||
if bullet_version < "2.88":
|
if str(bullet_version) < "2.88":
|
||||||
# Abort as system bullet was requested but too old
|
# Abort as system bullet was requested but too old
|
||||||
print("Bullet: System version {0} does not match minimal requirements ({1}). Aborting.".format(bullet_version, "2.88"))
|
print("Bullet: System version {0} does not match minimal requirements ({1}). Aborting.".format(bullet_version, "2.88"))
|
||||||
sys.exit(255)
|
sys.exit(255)
|
||||||
|
|
|
@ -197,7 +197,7 @@ def configure(env):
|
||||||
# We need at least version 2.88
|
# We need at least version 2.88
|
||||||
import subprocess
|
import subprocess
|
||||||
bullet_version = subprocess.check_output(['pkg-config', 'bullet', '--modversion']).strip()
|
bullet_version = subprocess.check_output(['pkg-config', 'bullet', '--modversion']).strip()
|
||||||
if bullet_version < "2.88":
|
if str(bullet_version) < "2.88":
|
||||||
# Abort as system bullet was requested but too old
|
# Abort as system bullet was requested but too old
|
||||||
print("Bullet: System version {0} does not match minimal requirements ({1}). Aborting.".format(bullet_version, "2.88"))
|
print("Bullet: System version {0} does not match minimal requirements ({1}). Aborting.".format(bullet_version, "2.88"))
|
||||||
sys.exit(255)
|
sys.exit(255)
|
||||||
|
|
Loading…
Reference in New Issue