<whitequark>
poetry runs (through a few layers of indirection) the get_requires_for_build_wheel hook, which for setuptools involves running setup.py, which fails because there's no setuptools_scm, and then the same thing happens again when it tries to run setup.py directly
<whitequark>
if you look at https://peps.python.org/pep-0517/#build-environment it says: "The get_requires_for_build_wheel and get_requires_for_build_sdist hooks are executed in an environment which contains the bootstrap requirements specified in the pyproject.toml file.
<whitequark>
"
<whitequark>
so hardcoding just pyproject-hooks and build isn't sufficient
<whitequark>
yep, installs fine for me. you'll need to remove the source checkout of amaranth, since it will have an empty nmigen directory git won't remove, and that confuses setuptools
<_whitenotifier-9>
[amaranth-lang/amaranth-lang.github.io] whitequark 3345920 - Deploying to main from @ amaranth-lang/amaranth@46e0a00a08607ad50d6ff9326b471b136ea86960 🚀
bl0x has joined #amaranth-lang
bl0x_ has quit [Ping timeout: 246 seconds]
<FFY00>
I don't understand what they're doing there
<FFY00>
they're installing pypa/build in a venv, to then run a script that uses pypa/build to build a new virtual environment and get the metadata for the project
<whitequark>
yeah I'm not sure either
<whitequark>
I'd expect poetry would just need to depend on pypa/build?
<FFY00>
they already do
<FFY00>
so I am very confused
<whitequark>
yeah I have no idea ^^; I just fiddled with it until it built
<whitequark>
I'm not very invested in poetry, this is why Amaranth uses bare setuptools for now
<whitequark>
kivikakk: or not yet, anyway; I have a few PRs implementing this functionality across the board (from Amaranth to Yosys) but unfortunately chronic illness happened so they've been sitting there since 2021 or something
<_whitenotifier-9>
[amaranth-lang/amaranth-lang.github.io] whitequark 2d69340 - Deploying to main from @ amaranth-lang/amaranth@5f6b36e91f44c43bd7073fc94be239e795a12128 🚀