Skip to content

Commit ef825d8

Browse files
committed
Added conflicts to recipes
1 parent e942ffd commit ef825d8

File tree

7 files changed

+16
-3
lines changed

7 files changed

+16
-3
lines changed

pythonforandroid/recipes/android/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ class AndroidRecipe(IncludedFilesBehaviour, CythonRecipe):
88
# name = 'android'
99
version = None
1010
url = None
11-
depends = ['pygame']
11+
1212
src_filename = 'src'
1313

14+
depends = ['pygame']
15+
conflicts = ['sdl2']
16+
1417

1518
recipe = AndroidRecipe()

pythonforandroid/recipes/hostpython2/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class Hostpython2Recipe(Recipe):
1010
url = 'http://python.org/ftp/python/{version}/Python-{version}.tar.bz2'
1111
name = 'hostpython2'
1212

13+
conflicts = ['hostpython3']
14+
1315
def prebuild_armeabi(self):
1416
# Override hostpython Setup?
1517
shprint(sh.cp, join(self.get_recipe_dir(), 'Setup'),

pythonforandroid/recipes/hostpython3/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class Hostpython3Recipe(Recipe):
1010
url = 'http://python.org/ftp/python/{version}/Python-{version}.tgz'
1111
name = 'hostpython3'
1212

13+
conflicts = ['hostpython2']
14+
1315
# def prebuild_armeabi(self):
1416
# # Override hostpython Setup?
1517
# shprint(sh.cp, join(self.get_recipe_dir(), 'Setup'),

pythonforandroid/recipes/pygame/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ class PygameRecipe(Recipe):
88
name = 'pygame'
99
version = '1.9.1'
1010
url = 'http://pygame.org/ftp/pygame-{version}release.tar.gz'
11+
1112
depends = ['python2', 'sdl']
13+
conflicts = ['sdl2']
1214

1315
def get_recipe_env(self, arch):
1416
env = super(PygameRecipe, self).get_recipe_env(arch)

pythonforandroid/recipes/python2/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class Python2Recipe(Recipe):
1212
name = 'python2'
1313

1414
depends = ['hostpython2']
15+
conflicts = ['python3']
1516

1617
def prebuild_armeabi(self):
1718
build_dir = self.get_build_container_dir('armeabi')

pythonforandroid/recipes/python3/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class Python3Recipe(Recipe):
1111
name = 'python3'
1212

1313
depends = ['hostpython3']
14+
conflicts = ['python2']
1415

1516
def prebuild_armeabi(self):
1617
build_dir = self.get_build_container_dir('armeabi')

pythonforandroid/recipes/sdl2/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
class LibSDL2Recipe(NDKRecipe):
88
version = "2.0.3"
99
url = "https://www.libsdl.org/release/SDL2-{version}.tar.gz"
10-
depends = ['python2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf']
11-
# depends = ['python2']
10+
1211
dir_name = 'SDL'
1312

13+
depends = ['python2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf']
14+
conflicts = ['pygame', 'pygame_bootstrap_components']
15+
1416
def prebuild_arch(self, arch):
1517
super(LibSDL2Recipe, self).prebuild_arch(arch)
1618
build_dir = self.get_build_dir(arch.arch)

0 commit comments

Comments
 (0)