Closed wingsofovnia closed 2 months ago
The lock files don't include build dependencies unfortunately, so you will need to specify them yourself. See here for example.
Thank you. It did work. It there a way perhaps to globally add build deps instead of patching individual packages one by one?
Yeah, it's been a TODO of mine to add some sort of default build dependencies list. That would solve most of these cases, I think.
I am wondering if it would be easier to peek into pyproject.toml
for build-system#requires
. It is already provided to lock_import.import_pdm
via project_file
attr. What do you think?
Ideally, we would like to have their hashes w.r.t. to reproducible builds but neither lock_import.package
has them, so similar (albeit not ideal) setup is achievable.
Unless I am misunderstanding, that would just be the build system for the local project (e.g., the monorepo if you're using one), and not the external package that you're trying to build. Each package on pypi might define its own build system. The vast majority I think still use setuptools, so defaulting to that would solve a lot of problems people run into.
You are right. I have little experience with Python but things clarified after reading up.
This can be closed unless you want to keep it open until a default build dependencies list or similar is implemented.
@jvolkman, if you give me some pointers, I can work on this. I have a basic understanding how the annotation system works.
I think we just want a default_build_dependencies
list somewhere. If build_dependencies
are specified at a package level, they'd override the default list (no merging or anything fancy).
On some wheels, I am getting
Backend 'setuptools.build_meta:__legacy__' is not available
.Here is the config I am using:
pyproject.toml
MODULE.bazel
I assume it uses
build.pypa.io
, isn't it? Interestedly enough,pip-run build -- -m build
works with the samepyproject.toml
:I also tried setting legacy build-system in
pyproject.toml
:Which didn't help. Any ideas what causes it and how to workaround the issue?