Closed
Description
Hi,
When trying to install amaranth on Ubuntu 22.04 with python 3.10 using the following command:
pip install git+https://github.com/amaranth-lang/amaranth.git#egg=amaranth[builtin-yosys]
I receive the following error:
Defaulting to user installation because normal site-packages is not writeable
Collecting amaranth[builtin-yosys]
Cloning https://github.com/amaranth-lang/amaranth.git to /tmp/pip-install-884z3dch/amaranth_dc9f1a8737054446a33d3461926d4c89
Running command git clone --filter=blob:none --quiet https://github.com/amaranth-lang/amaranth.git /tmp/pip-install-884z3dch/amaranth_dc9f1a8737054446a33d3461926d4c89
Resolved https://github.com/amaranth-lang/amaranth.git to commit 666ee27fd0fa9fb90109e0e201f878f9ab034c85
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
WARNING: Generating metadata for package amaranth produced metadata for project name unknown. Fix your #egg=amaranth fragments.
Discarding git+https://github.com/amaranth-lang/amaranth.git#egg=amaranth: Requested unknown from git+https://github.com/amaranth-lang/amaranth.git#egg=amaranth has inconsistent name: filename has 'amaranth', but metadata has 'unknown'
ERROR: Could not find a version that satisfies the requirement amaranth (unavailable) (from versions: 0, 0.3)
ERROR: No matching distribution found for amaranth (unavailable)
After to some googling, I found this issue: pypa/pipenv#5445 - it seems that one must specify name="amaranth"
as a keyword arg in the setup.py
file, and that does not appear to be the case in this repo. I think I am also coming across this issue in amaranth-soc
and amaranth-boards
when trying to install LUNA as per this issue: greatscottgadgets/luna#194
Could you please have a look at this?