Skip to content

Commit f7ac704

Browse files
committed
Reverse some (now) unwanted changes, and set conflicts appropriately
1 parent 8a5cc17 commit f7ac704

File tree

8 files changed

+10
-6
lines changed

8 files changed

+10
-6
lines changed

pythonforandroid/bootstraps/common/build/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def get_bootstrap_name():
7878
_bootstrap_name = get_bootstrap_name()
7979
else:
8080
PYTHON = "python3"
81-
_bootstrap_name = "sdl3"
81+
_bootstrap_name = "sdl2"
8282

8383
if PYTHON is not None and not exists(PYTHON):
8484
PYTHON = None

pythonforandroid/bootstraps/sdl3/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
class SDL3GradleBootstrap(Bootstrap):
1111
name = 'sdl3'
1212

13+
conflicts = ['sdl2']
14+
1315
recipe_depends = list(
1416
set(Bootstrap.recipe_depends).union({'sdl3'})
1517
)

pythonforandroid/recipes/android/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class AndroidRecipe(IncludedFilesBehaviour, CythonRecipe):
1212

1313
src_filename = 'src'
1414

15-
depends = [('sdl3', 'genericndkbuild'), 'pyjnius']
15+
depends = [('sdl3', 'sdl2', 'genericndkbuild'), 'pyjnius']
1616

1717
config_env = {}
1818

pythonforandroid/recipes/ffmpeg/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class FFMpegRecipe(Recipe):
77
version = 'n6.1.2'
88
# Moved to github.com instead of ffmpeg.org to improve download speed
99
url = 'https://github.com/FFmpeg/FFmpeg/archive/{version}.zip'
10-
depends = ['sdlx'] # Need this to build correct recipe order
10+
depends = ['sdl2'] # Need this to build correct recipe order
1111
opts_depends = ['openssl', 'ffpyplayer_codecs', 'av_codecs']
1212
patches = ['patches/configure.patch']
1313

pythonforandroid/recipes/ffpyplayer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class FFPyPlayerRecipe(PyProjectRecipe):
66
version = 'v4.5.1'
77
url = 'https://github.com/matham/ffpyplayer/archive/{version}.zip'
8-
depends = ['python3', 'sdlx', 'ffmpeg']
8+
depends = ['python3', 'sdl2', 'ffmpeg']
99
patches = ["setup.py.patch"]
1010
opt_depends = ['openssl', 'ffpyplayer_codecs']
1111

pythonforandroid/recipes/kivy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class KivyRecipe(CythonRecipe):
2727
url = 'https://github.com/misl6/kivy/archive/refs/heads/feat/sdl2-to-sdl3.zip'
2828
name = 'kivy'
2929

30-
depends = ['sdl3', 'pyjnius', 'setuptools']
30+
depends = [('sdl2', 'sdl3'), 'pyjnius', 'setuptools']
3131
python_depends = ['certifi', 'chardet', 'idna', 'requests', 'urllib3', 'filetype']
3232
hostpython_prerequisites = []
3333

pythonforandroid/recipes/pyjnius/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PyjniusRecipe(CythonRecipe):
99
version = '1.6.1'
1010
url = 'https://github.com/kivy/pyjnius/archive/{version}.zip'
1111
name = 'pyjnius'
12-
depends = [('genericndkbuild', 'sdl3'), 'six']
12+
depends = [('genericndkbuild', 'sdl2', 'sdl3'), 'six']
1313
site_packages_name = 'jnius'
1414

1515
patches = [

pythonforandroid/recipes/sdl2/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class LibSDL2Recipe(BootstrapNDKRecipe):
1010
url = "https://github.com/libsdl-org/SDL/releases/download/release-{version}/SDL2-{version}.tar.gz"
1111
md5sum = 'a344eb827a03045c9b399e99af4af13d'
1212

13+
conflicts = ['sdl3']
14+
1315
dir_name = 'SDL'
1416

1517
depends = ['sdl2_image', 'sdl2_mixer', 'sdl2_ttf']

0 commit comments

Comments
 (0)