-
-
Notifications
You must be signed in to change notification settings - Fork 64
Add a compatibility shim for migrating Android build tools to Platforms #699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
1074955
3082267
304532b
914ca5a
7325608
389b08d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1185,10 +1185,7 @@ def py313_setup(self, branch, worker, test_with_PTY=False, **kwargs): | |||||||||||||
| ) | ||||||||||||||
|
|
||||||||||||||
| def current_setup(self, branch, worker, test_with_PTY=False, **kwargs): | ||||||||||||||
| build_environ = { | ||||||||||||||
| "CACHE_DIR": "/Users/buildbot/downloads", | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| apple_py = ["python3", "Platforms/Apple"] | ||||||||||||||
| self.addSteps([ | ||||||||||||||
| # This symlink is needed to support Python 3.14 builds - it makes the | ||||||||||||||
| # top level Apple folder appear in the new Platforms/Apple location. | ||||||||||||||
|
|
@@ -1202,18 +1199,15 @@ def current_setup(self, branch, worker, test_with_PTY=False, **kwargs): | |||||||||||||
| # Build the full iOS XCframework, including a multi-arch simulator slice. | ||||||||||||||
| Compile( | ||||||||||||||
| name="Configure and compile build Python", | ||||||||||||||
| command=["python3", "Platforms/Apple", "build", "iOS", "build"], | ||||||||||||||
| env=build_environ, | ||||||||||||||
| command=apple_py + ["build", "iOS", "build"], | ||||||||||||||
| ), | ||||||||||||||
| Compile( | ||||||||||||||
| name="Configure and compile host Pythons", | ||||||||||||||
| command=["python3", "Platforms/Apple", "build", "iOS", "hosts"], | ||||||||||||||
| env=build_environ, | ||||||||||||||
| command=apple_py + ["build", "iOS", "hosts"], | ||||||||||||||
| ), | ||||||||||||||
| Compile( | ||||||||||||||
| name="Package XCframework", | ||||||||||||||
| command=["python3", "Platforms/Apple", "package", "iOS"], | ||||||||||||||
| env=build_environ, | ||||||||||||||
| command=apple_py + ["package", "iOS"], | ||||||||||||||
| ), | ||||||||||||||
| Test( | ||||||||||||||
| name="Run test suite", | ||||||||||||||
|
|
@@ -1224,13 +1218,11 @@ def current_setup(self, branch, worker, test_with_PTY=False, **kwargs): | |||||||||||||
| "iOS", | ||||||||||||||
| "--slow-ci", | ||||||||||||||
| ], | ||||||||||||||
| env=build_environ, | ||||||||||||||
| timeout=step_timeout(self.test_timeout), | ||||||||||||||
| ), | ||||||||||||||
| Clean( | ||||||||||||||
| name="Clean the builds", | ||||||||||||||
| command=["python3", "Platforms/Apple", "clean", "iOS"], | ||||||||||||||
| env=build_environ, | ||||||||||||||
| command=apple_py + ["clean", "iOS"], | ||||||||||||||
| ), | ||||||||||||||
| ]) | ||||||||||||||
|
|
||||||||||||||
|
|
@@ -1273,8 +1265,20 @@ class AndroidBuild(BaseBuild): | |||||||||||||
| """ | ||||||||||||||
|
|
||||||||||||||
| def setup(self, **kwargs): | ||||||||||||||
| android_py = "Android/android.py" | ||||||||||||||
| android_py = ["python3", "Platforms/Android"] | ||||||||||||||
| self.addSteps([ | ||||||||||||||
| # This symlink is needed to support pre Python 3.15 builds - it makes the | ||||||||||||||
| # top level Andrdoid folder appear in the new Platforms/Android location, | ||||||||||||||
| # and links `__main__.py` to the older `android.py` script. This step can | ||||||||||||||
| # be removed when 3.14 is no longer supported. | ||||||||||||||
| ShellCommand( | ||||||||||||||
| name="Set up compatibility symlink", | ||||||||||||||
| command=( | ||||||||||||||
| "[ -e Platforms/Android ]" | ||||||||||||||
| "|| ln -s ../Android Platforms/Android" | ||||||||||||||
|
||||||||||||||
| "&& ln -si ../Android/android.py Platforms/Android/__main__.py" | ||||||||||||||
|
||||||||||||||
| "[ -e Platforms/Android ]" | |
| "|| ln -s ../Android Platforms/Android" | |
| "&& ln -si ../Android/android.py Platforms/Android/__main__.py" | |
| "[ -e Platforms/Android ] " | |
| "|| ln -s ../Android Platforms/Android " | |
| "&& ln -si ../Android/android.py Platforms/Android/__main__.py" |
Uh oh!
There was an error while loading. Please reload this page.