cool-easter-32542
08/06/2024, 5:35 PMas described in the docs, Runningmy pyproject.toml contains:will cause Pants to inspect the [build-system] table in pyproject.toml, install the requirements specified in that table's requires key, and then execute the entry point specified in the build-backend key to build an sdist and a wheel, just as PEP 517 requires.pants package {dir}:{name of the python_distribution target}
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
until here everything is great, only that when i actually run pants package, i get an error: ValueError: /tmp/{some sandbox dir}/chroot/{mytargetname} does not contain any element.
after some research and debugging poetry itself with pants, i found out that the problem is that the pyproject.toml is copied to the tmp directory, and when poetry api starts trying to build the package, it thinks that the root directory (where the packages should actually be) is in the tmp sandbox dir, which are not (maybe you should copy the package files into the sandbox dir?)
I would really appreciate if you could validate me and check this bug, and maybe upload an example of a project that generates a whl package with poetry as it's backend?
im using pants version 2.21.0 on a wsl platform
thanks in advance!
pantsbuild/pants