Skip to content

Commit 593aa1e

Browse files
authored
Merge pull request #1723 from AndreMiras/feature/ticket1711_fix_psycopg2_compile
Fixes psycopg2 lib install dir, closes #1711
2 parents abb4703 + 6d2479c commit 593aa1e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pythonforandroid/recipes/psycopg2/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
class Psycopg2Recipe(PythonRecipe):
77
"""
88
Requires `libpq-dev` system dependency e.g. for `pg_config` binary.
9+
If you get `nl_langinfo` symbol runtime error, make sure you're running on
10+
`ANDROID_API` (`ndk-api`) >= 26, see:
11+
https://github.com/kivy/python-for-android/issues/1711#issuecomment-465747557
912
"""
1013
version = 'latest'
1114
url = 'http://initd.org/psycopg/tarballs/psycopg2-{version}.tar.gz'
@@ -41,7 +44,7 @@ def install_python_package(self, arch, name=None, env=None, is_dir=True):
4144
_env=env)
4245
shprint(hostpython, 'setup.py', 'install', '-O2',
4346
'--root={}'.format(self.ctx.get_python_install_dir()),
44-
'--install-lib=lib/python2.7/site-packages', _env=env)
47+
'--install-lib=.', _env=env)
4548

4649

4750
recipe = Psycopg2Recipe()

0 commit comments

Comments
 (0)