Skip to content
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

cross compiled #340

Open
esaaprillia opened this issue Dec 4, 2024 · 8 comments
Open

cross compiled #340

esaaprillia opened this issue Dec 4, 2024 · 8 comments

Comments

@esaaprillia
Copy link

@FrancescAlted

i cross compiled but failed.

i already built c-blosc2 and no longer need to build c-blosc2 in python-blosc2

version : python-blosc2-3.0.0-rc2

2024-12-04T00:13:24.0131748Z * Getting build dependencies for wheel...
2024-12-04T00:13:24.4762023Z * Building wheel...
2024-12-04T00:13:25.0106921Z Traceback (most recent call last):
2024-12-04T00:13:25.0108259Z   File "/home/staging_dir/hostpkg/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
2024-12-04T00:13:25.0109459Z     main()
2024-12-04T00:13:25.0110478Z   File "/home/staging_dir/hostpkg/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
2024-12-04T00:13:25.0112127Z     json_out['return_val'] = hook(**hook_input['kwargs'])
2024-12-04T00:13:25.0112641Z                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-04T00:13:25.0113834Z   File "/home/staging_dir/hostpkg/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
2024-12-04T00:13:25.0115401Z     return _build_backend().build_wheel(wheel_directory, config_settings,
2024-12-04T00:13:25.0116195Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-04T00:13:25.0117238Z   File "/home/staging_dir/hostpkg/lib/python3.11/site-packages/scikit_build_core/build/__init__.py", line 33, in build_wheel
2024-12-04T00:13:25.0118236Z     return _build_wheel_impl(                                                                                                                                                                                                                        
2024-12-04T00:13:25.0118548Z            ^^^^^^^^^^^^^^^^^^
2024-12-04T00:13:25.0119496Z   File "/home/staging_dir/hostpkg/lib/python3.11/site-packages/scikit_build_core/build/wheel.py", line 175, in _build_wheel_impl
2024-12-04T00:13:25.0120656Z     return _build_wheel_impl_impl(
2024-12-04T00:13:25.0120981Z            ^^^^^^^^^^^^^^^^^^^^^^^
2024-12-04T00:13:25.0121988Z   File "/home/staging_dir/hostpkg/lib/python3.11/site-packages/scikit_build_core/build/wheel.py", line 232, in _build_wheel_impl_impl
2024-12-04T00:13:25.0123086Z     metadata = get_standard_metadata(pyproject, settings)
2024-12-04T00:13:25.0123511Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-04T00:13:25.0124543Z   File "/home/staging_dir/hostpkg/lib/python3.11/site-packages/scikit_build_core/build/metadata.py", line 37, in get_standard_metadata
2024-12-04T00:13:25.0125755Z     new_pyproject_dict["project"][field] = provider.dynamic_metadata(field, config)                                                                                                                                                                  
2024-12-04T00:13:25.0126334Z                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-04T00:13:25.0127454Z   File "/home/staging_dir/hostpkg/lib/python3.11/site-packages/scikit_build_core/metadata/setuptools_scm.py", line 46, in dynamic_metadata
2024-12-04T00:13:25.0128859Z     raise ValueError(msg)
2024-12-04T00:13:25.0129786Z ValueError: setuptools-scm was unable to detect version for /home/build_dir/target-aarch64_generic_musl/python-blosc2-3.0.0-rc2.
2024-12-04T00:13:25.0130681Z                                                                                                                                                                                                                                                      
2024-12-04T00:13:25.0131633Z Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
2024-12-04T00:13:25.0132697Z
2024-12-04T00:13:25.0133299Z For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
2024-12-04T00:13:25.0445120Z
2024-12-04T00:13:25.0445750Z ERROR Backend subprocess exited when trying to invoke build_wheel
@esaaprillia
Copy link
Author

I will wait for the stable version 3 to be released on pypi.org. and come back to build it

@FrancescAlted
Copy link
Member

Sorry, but I am afraid we will need more context and info on what you are doing and why. Can you come with a reproducible series of steps on what is failing?

@esaaprillia
Copy link
Author

Sorry, but I am afraid we will need more context and info on what you are doing and why. Can you come with a reproducible series of steps on what is failing?

I can't confirm this problem yet. I will wait for you to release the stable version of python-c-blosc2 3.x.x

@esaaprillia
Copy link
Author

or maybe we can add USE_SYSTEM_BLOSC2 to use c-blosc2 on the existing system

@esaaprillia
Copy link
Author

maybe this is the problem

dynamic = ["version"]

I've built pyzmq and it works

https://github.com/zeromq/pyzmq/blob/main/pyproject.toml

@FrancescAlted
Copy link
Member

If you can fix this, and tell us what you are after, I'd happy to include your patch for 3.0.0 final.

@esaaprillia
Copy link
Author

If you can fix this, and tell us what you are after, I'd happy to include your patch for 3.0.0 final.

https://pyscaffold.org/en/v4.0.2/faq.html#:~:text=If%20you%20see%20an%20error,code%20there%20is%20a%20workaround.

@esaaprillia
Copy link
Author

@FrancescAlted

i managed to cross compile in openwrt in version 2.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants