Closed ilya-lavrenov closed 3 months ago
The error seems to originate from the distlib
package, which py-build-cmake depends on for creating Wheel files.
Looking at https://packaging.python.org/en/latest/specifications/binary-distribution-format/#the-dist-info-directory, adding subdirectories to the .dist-info folder is not explicitly disallowed, but not explicitly allowed either.
I would simply put them directly into .dist-info, without a subdirectory, but you may want to open an issue over at https://github.com/pypa/distlib/issues.
As a side note, please post any code and error messages as text between code fences (triple backticks) instead of using screenshots.
Ok, if it's not easy to fix, we can close ticket.
scikit-build-core
creates licenses
subfolder within dist-info
, that is why I supposed it's easy to fix.
Example of such package https://pypi.org/project/openvino-tokenizers/#files
Ok, if it's not easy to fix, we can close ticket.
Is suspect that the fix will be easy enough, but it should be fixed in the distlib
package, not in the py-build-cmake
package.
scikit-build-core
WAs the issue somehow.
But maybe that project does not use distlib
In general, I consider an issue of your dependency is your issue 🔧
Exception
Cmake code:
When install to
"${PY_BUILD_CMAKE_PACKAGE_NAME}-${PY_BUILD_CMAKE_PACKAGE_VERSION}.dist-info
- works well.