gmsh python module fails to install with poetry 1.4.0
The gmsh python API fails to install when using poetry 1.4.0. We haven't encountered issues with older versions of poetry (the previous version, 1.3.2, works fine with the latest gmsh version).
To reproduce the problem, install poetry 1.4.0, and make an empty directory. Within that directory, run:
poetry init # Then press "enter" to all prompts
poetry add gmsh
This tries to install gmsh 4.11.1, and fails as follows:
bash> poetry add gmsh
Creating virtualenv temp in /home/tom/temp/.venv
Using version ^4.11.1 for gmsh
Updating dependencies
Resolving dependencies... Downloading https://files.pythonhosted.org/packages/e7/17/3021f5af1317eaae61a702067c40720934f2290fa5aec5f00ea7e4796dd5/gmsh-4.11.1-py2.py3-nResolving dependencies... Downloading https://files.pythonhosted.org/packages/e7/17/3021f5af1317eaae61a702067c40720934f2290fa5aec5f00ea7e4796dd5/gmsh-4.11.1-py2.py3-nResolving dependencies... Downloading https://files.pythonhosted.org/packages/e7/17/3021f5af1317eaae61a702067c40720934f2290fa5aec5f00ea7e4796dd5/gmsh-4.11.1-py2.py3-nResolving dependencies... (0.7s)
Writing lock file
Package operations: 1 install, 0 updates, 0 removals
• Installing gmsh (4.11.1): Failed
AssertionError
In /home/tom/.cache/pypoetry/artifacts/f4/22/98/42d92f41b3b20e10bae9bc26b5563055e5a0b59e9d36a165606d8ad9d7/gmsh-4.11.1-py2.py3-none-manylinux1_x86_64.whl, gmsh-4.11.1.dist-info/RECORD is not mentioned in RECORD
at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/installer/sources.py:158 in get_contents
154│ if item.filename[-1:] == "/": # looks like a directory
155│ continue
156│
157│ record = record_mapping.pop(item.filename, None)
→ 158│ assert record is not None, "In {}, {} is not mentioned in RECORD".format(
159│ self._zipfile.filename,
160│ item.filename,
161│ ) # should not happen for valid wheels
162│
Repeating the same steps with poetry 1.3.2 is successful.
Possibly this is an issue with poetry rather than gmsh, however we haven't encountered issues with most other packages, so am wondering if there's something that needs tweaking in how the gmsh wheels are built?