mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-07 16:13:23 +08:00
Updated internal Python builds to 3.8.7
This commit is contained in:
parent
f5c12ef669
commit
efe7050445
1108
.efrocachemap
1108
.efrocachemap
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
<!-- THIS FILE IS AUTO GENERATED; DO NOT EDIT BY HAND -->
|
<!-- THIS FILE IS AUTO GENERATED; DO NOT EDIT BY HAND -->
|
||||||
<h4><em>last updated on 2021-01-04 for Ballistica version 1.5.30 build 20265</em></h4>
|
<h4><em>last updated on 2021-01-08 for Ballistica version 1.5.30 build 20266</em></h4>
|
||||||
<p>This page documents the Python classes and functions in the 'ba' module,
|
<p>This page documents the Python classes and functions in the 'ba' module,
|
||||||
which are the ones most relevant to modding in Ballistica. If you come across something you feel should be included here or could be better explained, please <a href="mailto:support@froemling.net">let me know</a>. Happy modding!</p>
|
which are the ones most relevant to modding in Ballistica. If you come across something you feel should be included here or could be better explained, please <a href="mailto:support@froemling.net">let me know</a>. Happy modding!</p>
|
||||||
<hr>
|
<hr>
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
namespace ballistica {
|
namespace ballistica {
|
||||||
|
|
||||||
// These are set automatically via script; don't change here.
|
// These are set automatically via script; don't change here.
|
||||||
const int kAppBuildNumber = 20265;
|
const int kAppBuildNumber = 20267;
|
||||||
const char* kAppVersion = "1.5.30";
|
const char* kAppVersion = "1.5.30";
|
||||||
|
|
||||||
// Our standalone globals.
|
// Our standalone globals.
|
||||||
|
|||||||
@ -185,7 +185,7 @@ class ClrBase:
|
|||||||
SBWHT: ClassVar[str]
|
SBWHT: ClassVar[str]
|
||||||
|
|
||||||
|
|
||||||
class Clr1(ClrBase):
|
class ClrAlways(ClrBase):
|
||||||
"""Convenience class for color terminal output.
|
"""Convenience class for color terminal output.
|
||||||
|
|
||||||
This version has colors always enabled. Generally you should use Clr which
|
This version has colors always enabled. Generally you should use Clr which
|
||||||
@ -240,7 +240,7 @@ class Clr1(ClrBase):
|
|||||||
SBWHT = TerminalColor.STRONG_BG_WHITE.value
|
SBWHT = TerminalColor.STRONG_BG_WHITE.value
|
||||||
|
|
||||||
|
|
||||||
class Clr0(ClrBase):
|
class ClrNever(ClrBase):
|
||||||
"""Convenience class for color terminal output.
|
"""Convenience class for color terminal output.
|
||||||
|
|
||||||
This version has colors disabled. Generally you should use Clr which
|
This version has colors disabled. Generally you should use Clr which
|
||||||
@ -300,6 +300,6 @@ _color_enabled: bool = (True if _envval == '1' else
|
|||||||
False if _envval == '0' else _default_color_enabled())
|
False if _envval == '0' else _default_color_enabled())
|
||||||
Clr: Type[ClrBase]
|
Clr: Type[ClrBase]
|
||||||
if _color_enabled:
|
if _color_enabled:
|
||||||
Clr = Clr1
|
Clr = ClrAlways
|
||||||
else:
|
else:
|
||||||
Clr = Clr0
|
Clr = ClrNever
|
||||||
|
|||||||
@ -220,6 +220,7 @@ def build_android(rootdir: str, arch: str, debug: bool = False) -> None:
|
|||||||
|
|
||||||
(can be arm, arm64, x86, or x86_64)
|
(can be arm, arm64, x86, or x86_64)
|
||||||
"""
|
"""
|
||||||
|
# pylint: disable=too-many-statements
|
||||||
import subprocess
|
import subprocess
|
||||||
import platform
|
import platform
|
||||||
builddir = 'build/python_android_' + arch + ('_debug' if debug else '')
|
builddir = 'build/python_android_' + arch + ('_debug' if debug else '')
|
||||||
@ -246,7 +247,8 @@ def build_android(rootdir: str, arch: str, debug: bool = False) -> None:
|
|||||||
|
|
||||||
# Commit from Jan 8, 2020. Right after this, the build system was switched
|
# Commit from Jan 8, 2020. Right after this, the build system was switched
|
||||||
# a a completely new minimal one which will take some work to update here.
|
# a a completely new minimal one which will take some work to update here.
|
||||||
# Punting on that for now...
|
# Punting on that for now... (tentative plan is to try and adopt the new
|
||||||
|
# one when we update for Python 3.10 in a year or two).
|
||||||
if True: # pylint: disable=using-constant-test
|
if True: # pylint: disable=using-constant-test
|
||||||
run('git checkout 9adbcfaca37f40b7a86381f83f0f6af4187233ae')
|
run('git checkout 9adbcfaca37f40b7a86381f83f0f6af4187233ae')
|
||||||
ftxt = readfile('pybuild/env.py')
|
ftxt = readfile('pybuild/env.py')
|
||||||
@ -302,26 +304,36 @@ def build_android(rootdir: str, arch: str, debug: bool = False) -> None:
|
|||||||
|
|
||||||
writefile('pybuild/packages/python.py', ftxt)
|
writefile('pybuild/packages/python.py', ftxt)
|
||||||
|
|
||||||
# Set this to a particular cpython commit to target exact releases from git
|
# Set these to particular releases to use those.
|
||||||
# commit = 'd7c567b08f9d7d6aef21b881340a2b72731129db' # 3.7.7 release
|
# py_commit = '580fbb018fd0844806119614d752b41fc69660f9' # 3.8.5
|
||||||
# commit = '4b47a5b6ba66b02df9392feb97b8ead916f8c1fa' # 3.7.8 release
|
py_commit = '6503f05dd59e26a9986bdea097b3da9b3546f45b' # 3.8.7
|
||||||
commit = '580fbb018fd0844806119614d752b41fc69660f9' # 3.8.5
|
|
||||||
|
# cpython-source-deps stuff started failing for OpenSSL on Jan 8 2021.
|
||||||
|
# Pinning it to an older one for now.
|
||||||
|
py_ssl_commit = '7f34c3085feb4692bbbb6c8b19d053ebc5049dad' # From 6/12/20
|
||||||
|
|
||||||
|
commit_lines = ''
|
||||||
|
if py_commit is not None:
|
||||||
|
commit_lines += (' if self.source_url == '
|
||||||
|
"'https://github.com/python/cpython/':\n"
|
||||||
|
" run_in_dir(['git', 'checkout', '" +
|
||||||
|
py_commit + "'], self.source_dir)\n")
|
||||||
|
if py_ssl_commit is not None:
|
||||||
|
commit_lines += (' if self.source_url == '
|
||||||
|
"'https://github.com/python/cpython-source-deps'"
|
||||||
|
" and self.branch == 'openssl-1.1.1':\n"
|
||||||
|
" run_in_dir(['git', 'checkout', '" +
|
||||||
|
py_ssl_commit + "'], self.source_dir)\n")
|
||||||
|
|
||||||
if commit is not None:
|
|
||||||
ftxt = readfile('pybuild/source.py')
|
ftxt = readfile('pybuild/source.py')
|
||||||
|
|
||||||
# Check out a particular commit right after the clone.
|
# Check out a particular commit right after the clone.
|
||||||
ftxt = replace_one(
|
ftxt = replace_one(
|
||||||
ftxt, "'git', 'clone', '--single-branch', '-b',"
|
ftxt, "'git', 'clone', '--single-branch', '-b',"
|
||||||
' self.branch, self.source_url, self.dest])',
|
' self.branch, self.source_url, self.dest])', "'git', 'clone', '-b',"
|
||||||
"'git', 'clone', '-b',"
|
|
||||||
' self.branch, self.source_url, self.dest])\n'
|
' self.branch, self.source_url, self.dest])\n'
|
||||||
' # efro: hack to get the python we want.\n'
|
' # efro: hack to get exact commits we want.\n'
|
||||||
" print('DOING URL', self.source_url)\n"
|
" print('DOING URL', self.source_url)\n" + commit_lines)
|
||||||
' if self.source_url == '
|
|
||||||
"'https://github.com/python/cpython/':\n"
|
|
||||||
" run_in_dir(['git', 'checkout', '" + commit +
|
|
||||||
"'], self.source_dir)")
|
|
||||||
writefile('pybuild/source.py', ftxt)
|
writefile('pybuild/source.py', ftxt)
|
||||||
ftxt = readfile('pybuild/util.py')
|
ftxt = readfile('pybuild/util.py')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user