package/python-ml-dtypes: skip dependency check
PATCH 1/1 package/python-ml-dtypes: skip dependency check
This package pins overly strict numpy dependency versions apparently for compatibility reasons that don't appear relevant to buildroot.
This package also appears to pin an overly strict setuptools version for unclear reasons.
See:
https://github.com/jax-ml/ml_dtypes/blob/v0.3.2/pyproject.toml#L51-L55
To fix this lets just set the --skip-dependency-check build option and ignore the build dependency version mismatches since they don't appear to cause any build issues.
This error was introduced when we migrated setuptools to pep517 in 8937db8dd595e0988751e5dbb568e870b07b39cc.
--- package/python-ml-dtypes/python-ml-dtypes.mk | 1 + 1 file changed, 1 insertion(+)
package/python-ml-dtypes/python-ml-dtypes.mk +1 -0
@@ -10,6 +10,7 @@ PYTHON_ML_DTYPES_SITE = https://files.pythonhosted.org/packages/39/7d/8d85fcba86 PYTHON_ML_DTYPES_LICENSE = Apache-2.0 PYTHON_ML_DTYPES_LICENSE_FILES = LICENSE PYTHON_ML_DTYPES_SETUP_TYPE = setuptools +PYTHON_ML_DTYPES_BUILD_OPTS = --skip-dependency-check PYTHON_ML_DTYPES_DEPENDENCIES = \ host-python-numpy \
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi James,
Thanks for the patch!
I successfully tested it on branch master at commit 9764258 with command:
support/testing/run-tests \
-d dl -o output_folder \
tests.package.test_python_ml_dtypesQuoted 9 lines · James Hilliard
This package pins overly strict numpy dependency versions apparently for compatibility reasons that don't appear relevant to buildroot.
This package also appears to pin an overly strict setuptools version for unclear reasons.
See:
https://github.com/jax-ml/ml_dtypes/blob/v0.3.2/pyproject.toml#L51-L55
Quoted 8 lines
To fix this lets just set the --skip-dependency-check build option and ignore the build dependency version mismatches since they don't appear to cause any build issues.
This error was introduced when we migrated setuptools to pep517 in
8937db8dd595e0988751e5dbb568e870b07b39cc.Signed-off-by James Hilliard <[email protected]>
Quoted 18 lines
--- package/python-ml-dtypes/python-ml-dtypes.mk | 1 + 1 file changed, 1 insertion(+)package/python-ml-dtypes/python-ml-dtypes.mk +0
-0@@ -10,6 +10,7 @@ PYTHON_ML_DTYPES_SITE =https://files.pythonhosted.org/packages/39/7d/8d85fcba86
PYTHON_ML_DTYPES_LICENSE= Apache-2.0
PYTHON_ML_DTYPES_LICENSE_FILES= LICENSE
PYTHON_ML_DTYPES_SETUP_TYPE= setuptoolspackage/python-ml-dtypes/python-ml-dtypes.mk +1
-1+PYTHON_ML_DTYPES_BUILD_OPTS = --skip-dependency-check PYTHON_ML_DTYPES_DEPENDENCIES = \ host-python-numpy \ --
Quoted 1 line
2.34.1
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello James, Julien, All,
Le 14/05/2024 à 19:26, Julien Olivain a écrit :
Quoted 4 lines
Hi James,
Thanks for the patch!
Quoted 12 lines
I successfully tested it on branch master at commit 9764258 with command:
support/testing/run-tests \
-d dl -ooutput_folder\
tests.package.test_python_ml_dtypesQuoted 5 lines · James Hilliard
This package pins overly strict numpy dependency versions apparently for compatibility reasons that don't appear relevant to buildroot.
This package also appears to pin an overly strict setuptools version for unclear reasons.
I looked at this issue last week with the same conclusions...
I was able to fix the setuptools version check but it was sill failing with numpy check (it seems numpy dependency is never found while cross-compiling).
Quoted 7 lines
Quoted 7 lines
See:
https://github.com/jax-ml/ml_dtypes/blob/v0.3.2/pyproject.toml#L51-L55To fix this lets just set the --skip-dependency-check build option and ignore the build dependency version mismatches since they don't appear to cause any build issues.
Maybe we should avoid using --skip-dependency-check option too easily. We could miss any new dependency used by further release?
Quoted 12 lines
Quoted 5 lines
This error was introduced when we migrated setuptools to pep517 in
8937db8dd595e0988751e5dbb568e870b07b39cc.Signed-off-by James Hilliard <[email protected]>Tested-by Julien Olivain <[email protected]>Quoted 4 lines
---
package/python-ml-dtypes/python-ml-dtypes.mk | 1 +1 file changed, 1 insertion(+)
Quoted 10 lines
Quoted 10 lines
package/python-ml-dtypes/python-ml-dtypes.mk +0
-0@@ -10,6 +10,7 @@ PYTHON_ML_DTYPES_SITE =https://files.pythonhosted.org/packages/39/7d/8d85fcba86
PYTHON_ML_DTYPES_LICENSE = Apache-2.0
PYTHON_ML_DTYPES_LICENSE_FILES = LICENSE
PYTHON_ML_DTYPES_SETUP_TYPE = setuptools
We could add a comment here to explain why we skip-dependency-check here.
Best regards,
Romain
Quoted 7 lines
Quoted 6 lines
+PYTHON_ML_DTYPES_BUILD_OPTS = --skip-dependency-check
PYTHON_ML_DTYPES_DEPENDENCIES = \
host-python-numpy \Signature · 1 line
2.34.1
Quoted 7 lines
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 29 lines · Romain Naour
Hello James, Julien, All,
Quoted 4 lines · Julien Olivain
Hi James,
Thanks for the patch!
Quoted 12 lines
I successfully tested it on branch master at commit 9764258 with command:
support/testing/run-tests \ -d dl -o output_folder \ tests.package.test_python_ml_dtypesQuoted 5 lines · James Hilliard
This package pins overly strict numpy dependency versions apparently for compatibility reasons that don't appear relevant to buildroot.
This package also appears to pin an overly strict setuptools version for unclear reasons.
I looked at this issue last week with the same conclusions...
I was able to fix the setuptools version check but it was sill failing with numpy check (it seems numpy dependency is never found while cross-compiling).Quoted 4 lines
Quoted 4 lines
See:
https://github.com/jax-ml/ml_dtypes/blob/v0.3.2/pyproject.toml#L51-L55
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
To fix this lets just set the --skip-dependency-check build option and ignore the build dependency version mismatches since they don't appear to cause any build issues.
Maybe we should avoid using --skip-dependency-check option too easily. We could miss any new dependency used by further release?
Yeah, we shouldn't use it unless we have a good reason for it, I think this qualifies.
Quoted 13 lines
Quoted 13 lines
Quoted 6 lines
This error was introduced when we migrated setuptools to pep517 in
8937db8dd595e0988751e5dbb568e870b07b39cc.Signed-off-by James Hilliard <[email protected]>Tested-by Julien Olivain <[email protected]>Quoted 4 lines
--- package/python-ml-dtypes/python-ml-dtypes.mk | 1 + 1 file changed, 1 insertion(+)
Quoted 12 lines
Quoted 10 lines
Quoted 10 lines
package/python-ml-dtypes/python-ml-dtypes.mk +0
-0@@ -10,6 +10,7 @@ PYTHON_ML_DTYPES_SITE =https://files.pythonhosted.org/packages/39/7d/8d85fcba86
PYTHON_ML_DTYPES_LICENSE= Apache-2.0
PYTHON_ML_DTYPES_LICENSE_FILES= LICENSE
PYTHON_ML_DTYPES_SETUP_TYPE= setuptoolsWe could add a comment here to explain why we skip-dependency-check here.
Well we haven't really been doing that on other packages using this flag, and packages specifying overly strict/unnecessary build dependencies in some way is generally always the reason for this flag for any packages using it.
Quoted 19 lines
Best regards,
RomainQuoted 14 lines
Quoted 6 lines
+PYTHON_ML_DTYPES_BUILD_OPTS = --skip-dependency-check
PYTHON_ML_DTYPES_DEPENDENCIES = \ host-python-numpy \--
2.34.1Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Romain Naour
AppliedHello James,
Le 15/05/2024 à 17:10, James Hilliard a écrit :
Quoted 34 lines · Romain Naour
Quoted 33 lines
Hello James, Julien, All,
Quoted 4 lines · Julien Olivain
Hi James,
Thanks for the patch!
Quoted 12 lines
I successfully tested it on branch master at commit 9764258 with command:
support/testing/run-tests \ -d dl -o output_folder \ tests.package.test_python_ml_dtypesQuoted 5 lines · James Hilliard
This package pins overly strict numpy dependency versions apparently for compatibility reasons that don't appear relevant to buildroot.
This package also appears to pin an overly strict setuptools version for unclear reasons.
I looked at this issue last week with the same conclusions...
I was able to fix the setuptools version check but it was sill failing with numpy check (it seems numpy dependency is never found while cross-compiling).Quoted 7 lines
Quoted 7 lines
See:
https://github.com/jax-ml/ml_dtypes/blob/v0.3.2/pyproject.toml#L51-L55To fix this lets just set the --skip-dependency-check build option and ignore the build dependency version mismatches since they don't appear to cause any build issues.
Quoted 5 lines
Quoted 2 lines
Maybe we should avoid using --skip-dependency-check option too easily. We could miss any new dependency used by further release?
Yeah, we shouldn't use it unless we have a good reason for it, I think this qualifies.
Fair enough.
Quoted 27 lines
Quoted 14 lines
Quoted 14 lines
Quoted 7 lines
This error was introduced when we migrated setuptools to pep517 in
8937db8dd595e0988751e5dbb568e870b07b39cc.Signed-off-by James Hilliard <[email protected]>Tested-by Julien Olivain <[email protected]>Quoted 4 lines
--- package/python-ml-dtypes/python-ml-dtypes.mk | 1 + 1 file changed, 1 insertion(+)Quoted 12 lines
Quoted 10 lines
Quoted 10 lines
package/python-ml-dtypes/python-ml-dtypes.mk +0
-0@@ -10,6 +10,7 @@ PYTHON_ML_DTYPES_SITE =https://files.pythonhosted.org/packages/39/7d/8d85fcba86
PYTHON_ML_DTYPES_LICENSE= Apache-2.0
PYTHON_ML_DTYPES_LICENSE_FILES= LICENSE
PYTHON_ML_DTYPES_SETUP_TYPE= setuptoolsWe could add a comment here to explain why we skip-dependency-check here.
Quoted 3 lines
Well we haven't really been doing that on other packages using this flag, and packages specifying overly strict/unnecessary build dependencies in some way is generally always the reason for this flag for any packages using it.
Ok, since there is no other proposal I'll apply as is.
I added a link to a failed gitlab-ci job in the commit log and added a followup patch to remove python-pybind from C++ dependency comment.
Applied to master, thanks.
Best regards,
Romain
Quoted 12 lines
Quoted 12 lines
Best regards,
RomainQuoted 7 lines
Quoted 6 lines
+PYTHON_ML_DTYPES_BUILD_OPTS = --skip-dependency-check
PYTHON_ML_DTYPES_DEPENDENCIES = \ host-python-numpy \--
2.34.1
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot