Skip to content

Commit

Permalink
Further recipe changes for python3 kivy#1514
Browse files Browse the repository at this point in the history
  • Loading branch information
strubbi77 committed Feb 5, 2019
1 parent 2fb8281 commit b8c55dc
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pythonforandroid/recipes/cherrypy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class CherryPyRecipe(PythonRecipe):
version = '5.1.0'
url = 'https://bitbucket.org/cherrypy/cherrypy/get/{version}.tar.gz'
depends = ['hostpython2', 'setuptools']
depends = [('hostpython2', 'hostpython3'), 'setuptools']
site_packages_name = 'cherrypy'
call_hostpython_via_targetpython = False

Expand Down
2 changes: 1 addition & 1 deletion pythonforandroid/recipes/feedparser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class FeedparserPyRecipe(PythonRecipe):
version = '5.2.1'
url = 'https://github.com/kurtmckee/feedparser/archive/{version}.tar.gz'
depends = [('hostpython2', 'python3crystax'), 'setuptools']
depends = [('hostpython2', 'hostpython3crystax', 'hostpython3'), 'setuptools']
site_packages_name = 'feedparser'
call_hostpython_via_targetpython = False

Expand Down
2 changes: 1 addition & 1 deletion pythonforandroid/recipes/kiwisolver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class KiwiSolverRecipe(CppCompiledComponentsPythonRecipe):
site_packages_name = 'kiwisolver'
version = '0.1.3'
url = 'https://github.com/nucleic/kiwi/archive/master.zip'
depends = ['python2', 'setuptools']
depends = ['setuptools']


recipe = KiwiSolverRecipe()
2 changes: 2 additions & 0 deletions pythonforandroid/recipes/libtribler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class LibTriblerRecipe(PythonRecipe):
'netifaces', 'openssl', 'pil', 'pycrypto', 'pyleveldb', 'twisted',
]

conflicts = ['python3']

python_depends = ['chardet', 'cherrypy', 'configobj', 'decorator', 'feedparser',
'libnacl', 'pyasn1', 'requests', 'six',
]
Expand Down
5 changes: 5 additions & 0 deletions pythonforandroid/recipes/openssl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ class OpenSSLRecipe(Recipe):
'''


conflicts = ['python3']

standard_version = '1.1'
'''the major minor version used to link our recipes'''
legacy_version = '1.0'
Expand All @@ -59,6 +62,8 @@ class OpenSSLRecipe(Recipe):

@property
def use_legacy(self):
if not self.ctx.recipe_build_order:
return False
return any([i for i in ('python2legacy', 'python3crystax') if
i in self.ctx.recipe_build_order])

Expand Down
2 changes: 1 addition & 1 deletion pythonforandroid/recipes/ruamel.yaml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class RuamelYamlRecipe(PythonRecipe):
version = '0.15.77'
url = 'https://pypi.python.org/packages/source/r/ruamel.yaml/ruamel.yaml-{version}.tar.gz'
depends = [('python2', 'python3crystax'), 'setuptools']
depends = [('python2', 'python3crystax', 'python3'), 'setuptools']
site_packages_name = 'ruamel'
call_hostpython_via_targetpython = False
patches = ['disable-pip-req.patch']
Expand Down
2 changes: 1 addition & 1 deletion pythonforandroid/recipes/zope/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ZopeRecipe(PythonRecipe):
version = '4.1.3'
url = 'http://pypi.python.org/packages/source/z/zope.interface/zope.interface-{version}.tar.gz'

depends = ['python2']
depends = [('python2', 'python3')]

def get_recipe_env(self, arch):
env = super(ZopeRecipe, self).get_recipe_env(arch)
Expand Down

1 comment on commit b8c55dc

@RobertFlatt
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brilliant.
Can you help me understand the conflicts = ['python3'] cases?
openssl conflicts because it is now built in, is that right?
So if a p4a (python3) user specifies openssl, the build executes, builds nothing for openssl, and issues a warning that says openssl not built, is that correct?
And libtribler?
Thanks

Please sign in to comment.