Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions ci/rebuild_updated_recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
the list of recipes was huge and result was:
[ERROR]: Didn't find any valid dependency graphs.
[ERROR]: This means that some of your requirements pull in conflicting dependencies.
- only rebuilds on sdl2 bootstrap
"""
import sh
import os
Expand Down Expand Up @@ -57,14 +56,29 @@ def build(target_python, requirements, archs):
android_sdk_home = os.environ['ANDROID_SDK_HOME']
android_ndk_home = os.environ['ANDROID_NDK_HOME']
requirements.add(target_python.name)
requirements = ','.join(requirements)
logger.info('requirements: {}'.format(requirements))
requirements_str = ','.join(requirements)
logger.info('requirements: {}'.format(requirements_str))

# Detect bootstrap based on requirements
# SDL3 recipes conflict with SDL2, so we need the sdl3 bootstrap
# when any SDL3-related recipe (sdl3, sdl3_image, sdl3_mixer, sdl3_ttf) is present
bootstrap = None
if any(r.startswith('sdl3') for r in requirements):
bootstrap = 'sdl3'
logger.info('Detected sdl3 recipe in requirements, using sdl3 bootstrap')

build_command = [
'setup.py', 'apk',
'--sdk-dir', android_sdk_home,
'--ndk-dir', android_ndk_home,
'--requirements', requirements
] + [f"--arch={arch}" for arch in archs]
'--requirements', requirements_str
]

if bootstrap:
build_command.extend(['--bootstrap', bootstrap])

build_command.extend([f"--arch={arch}" for arch in archs])

build_command_str = " ".join(build_command)
logger.info(f"Build command: {build_command_str}")

Expand Down
1 change: 0 additions & 1 deletion pythonforandroid/recipes/sdl3_mixer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

class LibSDL3Mixer(BootstrapNDKRecipe):
version = "72a73339731a12c1002f9caca64f1ab924938102"
# url = "https://github.com/libsdl-org/SDL_ttf/releases/download/release-{version}/SDL3_ttf-{version}.tar.gz"
url = "https://github.com/libsdl-org/SDL_mixer/archive/{version}.tar.gz"
dir_name = "SDL3_mixer"

Expand Down
Loading