-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added lz4 #3071
base: develop
Are you sure you want to change the base?
Added lz4 #3071
Conversation
env = self.get_recipe_env(arch) | ||
build_dir = self.get_build_dir(arch.arch) | ||
lib_dir = self.ctx.get_libs_dir(arch.arch) | ||
include_dir = join(self.ctx.get_python_install_dir(), 'include', 'lz4') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is failing with:
Traceback (most recent call last):
File "/home/user/app/testapps/on_device_unit_tests/setup.py", line 106, in <module>
setup(
File "/home/user/app/venv/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/user/app/pythonforandroid/bdistapk.py", line 82, in run
main()
File "/home/user/app/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/home/user/app/pythonforandroid/toolchain.py", line 677, in __init__
getattr(self, command)(args)
File "/home/user/app/pythonforandroid/toolchain.py", line 104, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/home/user/app/pythonforandroid/toolchain.py", line 163, in build_dist_from_args
build_recipes(build_order, python_modules, ctx,
File "/home/user/app/pythonforandroid/build.py", line 504, in build_recipes
recipe.build_arch(arch)
File "/home/user/app/pythonforandroid/recipes/liblz4/__init__.py", line 21, in build_arch
include_dir = join(self.ctx.get_python_install_dir(), 'include', 'lz4')
TypeError: Context.get_python_install_dir() missing 1 required positional argument: 'arch'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, did you have a chance to test the recipe on-device, is it working?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build is failing with:
TypeError: join() argument must be str, bytes, or os.PathLike object, not 'ArchAarch_64'
https://github.com/kivy/python-for-android/actions/runs/11309141983/job/31461258396?pr=3071
Ideally you should test the recipe builds locally before pushing and also check that it's running properly on device.
env = self.get_recipe_env(arch) | ||
build_dir = self.get_build_dir(arch.arch) | ||
lib_dir = self.ctx.get_libs_dir(arch.arch) | ||
include_dir = join(self.ctx.get_python_install_dir(arch), 'include', 'lz4') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably want get_python_install_dir(arch.arch)
here
|
||
class LibLZ4Recipe(Recipe): | ||
name = 'liblz4' | ||
version = '1.9.4' # Use the desired version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably drop this comment
|
||
class Lz4Recipe(CompiledComponentsPythonRecipe): | ||
name = 'lz4' | ||
version = '4.3.2' # Use the desired version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drop this comment too
Trying to add recipe for lz4, can somebody check and help please ?