whitequark changed the topic of #amaranth-lang to: Amaranth hardware definition language · weekly meetings on Mondays at 1700 UTC · code https://github.com/amaranth-lang · logs https://libera.irclog.whitequark.org/amaranth-lang
<whitequark> hm, I actually get: No module named 'virtualenv.activation.xonsh'
<whitequark> does it build dependencies in non-pep517 fashion too, I wonder?
<whitequark> removed virtualenv, now it's 'PosixPath' object has no attribute 'is_relative_to'
<whitequark> it looks like both of those are debian-specific
<whitequark> well, I can't get poetry to work, at all, even with pipx
<whitequark> oh, nevermind, it doesn't run poetry install if you just poetry run if your existing venv matches the python requirement
<whitequark> adamgreig: yes this is a poetry bug
<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
<adamgreig[m]> sigh, that explains it
<adamgreig[m]> thanks for investigating
<whitequark> I wonder what pypa/build does
<whitequark> I think this works
<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
<whitequark> I might actually just fix that
<adamgreig[m]> i put together a minimal reproducing example in https://github.com/adamgreig/poetry_build_requires_bug
<adamgreig[m]> do you plan to report this to poetry?
<whitequark> I was hoping someone else would submit a poetry bug to be honest
<adamgreig[m]> will do
<whitequark> thank you!
<whitequark> thank you!
<_whitenotifier-9> [amaranth-lang/amaranth] whitequark pushed 1 commit to main [+0/-0/±1] https://github.com/amaranth-lang/amaranth/compare/5f094a23eb1a...46e0a00a0860
<_whitenotifier-9> [amaranth-lang/amaranth] whitequark 46e0a00 - Add a workaround for setuptools erroring out on stale git checkouts.
<_whitenotifier-9> [amaranth-lang/amaranth-lang.github.io] whitequark pushed 1 commit to main [+0/-0/±27] https://github.com/amaranth-lang/amaranth-lang.github.io/compare/8a9257f40cd6...3345920e685e
<_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
Degi_ has joined #amaranth-lang
Degi has quit [Ping timeout: 248 seconds]
Degi_ is now known as Degi
<FFY00> I opened a PR rewriting that whole code 😅
<whitequark> got a link?
<FFY00> I'm fixing mypy rn
kivikakk[m] has joined #amaranth-lang
<DeVector[m]> Is there any way to add print statements in elaborate method like we use $display in verilog in simulation?
<kivikakk[m]> you can print values in a simulation process, which sounds like it might be what you want?
<DeVector[m]> Got it, so there is no other way of adding print statements in module itself, right?
<kivikakk[m]> not AFAIK
kivikakk is now known as kivikakk[i]
kivikakk[m] is now known as kivikakk
kivikakk has quit [Quit: Reconnecting]
kivikakk has joined #amaranth-lang
kivikakk has quit [Quit: Reconnecting]
kivikakk has joined #amaranth-lang
kivikakk[i] has left #amaranth-lang [#amaranth-lang]
<d1b2> <jer_emy> @adamgreig can I make a suggestion for another example to add to your repo? Adding a verilog file into your build: https://lab.ktemkin.com/post/nmigen-instance/
<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] whitequark pushed 1 commit to main [+0/-0/±1] https://github.com/amaranth-lang/amaranth/compare/46e0a00a0860...5f6b36e91f44
<_whitenotifier-9> [amaranth-lang/amaranth] whitequark 5f6b36e - Add a workaround for python-poetry/poetry#7702.
<_whitenotifier-9> [amaranth-lang/amaranth-lang.github.io] whitequark pushed 1 commit to main [+0/-0/±27] https://github.com/amaranth-lang/amaranth-lang.github.io/compare/3345920e685e...2d69340183d1
<_whitenotifier-9> [amaranth-lang/amaranth-lang.github.io] whitequark 2d69340 - Deploying to main from @ amaranth-lang/amaranth@5f6b36e91f44c43bd7073fc94be239e795a12128 🚀
<_whitenotifier-9> [amaranth-lang/amaranth-boards] whitequark pushed 1 commit to main [+0/-0/±1] https://github.com/amaranth-lang/amaranth-boards/compare/ce26e35b5c07...42152283d98e
<_whitenotifier-9> [amaranth-lang/amaranth-boards] whitequark 4215228 - Add a workaround for setuptools erroring out on stale git checkouts.
oter has quit [Remote host closed the connection]
oter has joined #amaranth-lang
oter has quit [Remote host closed the connection]
oter has joined #amaranth-lang
balrog has quit [Quit: Bye]
balrog has joined #amaranth-lang