python install dir arch.arch

This commit is contained in:
zeppi 2022-12-03 22:53:27 -05:00
parent 6b2e690155
commit 43541ded8b

View file

@ -64,7 +64,7 @@ class CoincurveRecipe(CompiledComponentsPythonRecipe):
# # https://github.com/kivy/python-for-android/pull/1250/files#diff-569e13021e33ced8b54385f55b49cbe6 # # https://github.com/kivy/python-for-android/pull/1250/files#diff-569e13021e33ced8b54385f55b49cbe6
# env['CFLAGS'] += ' -I{}/include/python/'.format(ndk_dir_python) # env['CFLAGS'] += ' -I{}/include/python/'.format(ndk_dir_python)
# else: # else:
env['PYTHON_ROOT'] = self.ctx.get_python_install_dir() env['PYTHON_ROOT'] = self.ctx.get_python_install_dir(arch.arch)
env['CFLAGS'] += ' -I' + env['PYTHON_ROOT'] + '/include/python{}'.format(python_version) env['CFLAGS'] += ' -I' + env['PYTHON_ROOT'] + '/include/python{}'.format(python_version)
env['LDFLAGS'] += " -lpython{}".format(python_version) env['LDFLAGS'] += " -lpython{}".format(python_version)
env['LDFLAGS'] += " -lsecp256k1" env['LDFLAGS'] += " -lsecp256k1"