Skip to content

Commit

Permalink
Bump libpq version (kivy#2245)
Browse files Browse the repository at this point in the history
* bump libpq version
* Fix libpq env for cross compile
Co-authored-by: Rene Leveille <[email protected]>
  • Loading branch information
Rene Leveille authored and germn committed Mar 20, 2021
1 parent 2153843 commit c803718
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pythonforandroid/recipes/libpq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@


class LibpqRecipe(Recipe):
version = '9.5.3'
version = '10.12'
url = 'http://ftp.postgresql.org/pub/source/v{version}/postgresql-{version}.tar.bz2'
depends = []

def get_recipe_env(self, arch):
env = super().get_recipe_env(arch)
env['USE_DEV_URANDOM'] = '1'

return env

def should_build(self, arch):
return not os.path.isfile('{}/libpq.a'.format(self.ctx.get_libs_dir(arch.arch)))

Expand Down

0 comments on commit c803718

Please sign in to comment.