calyxir / calyx

Intermediate Language (IL) for Hardware Accelerator Generators
https://calyxir.org
MIT License
473 stars 46 forks source link

`json-dat.py` script is hard to use with new pip restrictions #2263

Open sgpthomas opened 1 month ago

sgpthomas commented 1 month ago

The new pip restrictions force you to install everything in a virtualenv. This makes it very annoying to run fud/fud2 commands that rely on this without resorting to disabling this error, or making new virtualenvs. Both of these seem non-ideal. I think probably the solution is to turn json-dat.py into an installable python package, but I'm open to ideas. The other reasonable possibility that I can imagine is to remove all python dependencies except the fud dependency. And then set PYTHONPATH to include the fud directory when we run json-dat.py.

sgpthomas commented 4 weeks ago

I think a better solution is to set the python var in fud2.toml to a venv python with the correct things installed. This is putting some of the burden on plugin writers to not use python directly, and instead read the python version from the config. Which I think most of them do already.