Merge branch 'release/1.10.x'

This commit is contained in:
rdb 2020-11-28 22:26:04 +01:00
commit c9aedc2b44
3 changed files with 5 additions and 8 deletions

View File

@ -65,7 +65,7 @@ class VFSImporter:
vfile = vfs.getFile(filename, True)
if vfile:
return VFSLoader(dir_path, vfile, filename,
desc=('.py', 'U', imp.PY_SOURCE))
desc=('.py', 'r', imp.PY_SOURCE))
# If there's no .py file, but there's a .pyc file, load that
# anyway.
@ -93,7 +93,7 @@ class VFSImporter:
vfile = vfs.getFile(filename, True)
if vfile:
return VFSLoader(dir_path, vfile, filename, packagePath=path,
desc=('.py', 'U', imp.PY_SOURCE))
desc=('.py', 'r', imp.PY_SOURCE))
for ext in compiledExtensions:
filename = Filename(path, '__init__.' + ext)
vfile = vfs.getFile(filename, True)

View File

@ -117,8 +117,8 @@ deps: {DEPENDS}
MACOS_SCRIPT_PREFIX = \
"""#!/bin/bash
IFS=.
read -a version_info <<< "`sw_vers -productVersion`'"
if (( ${version_info[1]} < 15 )); then
read -a version_info <<< "`sw_vers -productVersion`"
if (( ${version_info[0]} == 10 && ${version_info[1]} < 15 )); then
"""
MACOS_SCRIPT_POSTFIX = \

View File

@ -272,7 +272,7 @@ def parseopts(args):
try:
maj, min = OSXTARGET.strip().split('.')
OSXTARGET = int(maj), int(min)
assert OSXTARGET[0] == 10
assert OSXTARGET[0] >= 10
except:
usage("Invalid setting for OSXTARGET")
@ -2361,9 +2361,6 @@ def WriteConfigSettings():
dtool_config["HAVE_VIDEO4LINUX"] = 'UNDEF'
dtool_config["PHAVE_LINUX_INPUT_H"] = 'UNDEF'
dtool_config["IS_OSX"] = '1'
# 10.4 had a broken ucontext implementation
if int(platform.mac_ver()[0][3]) <= 4:
dtool_config["PHAVE_UCONTEXT_H"] = 'UNDEF'
if PkgSkip("X11"):
dtool_config["HAVE_GLX"] = 'UNDEF'