Skip to content

0.5.2: Unable to install wheel (cmsis_pack_manager/cmsis_pack_manager/__init__.py is not mentioned in RECORD) - broken pypi sdist tarball #207

@dvzrv

Description

@dvzrv

Hi! When trying to package 0.5.2 for Arch Linux I ran into the following problem when trying to install the built wheel:

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.10/site-packages/installer/__main__.py", line 98, in <module>
    _main(sys.argv[1:], "python -m installer")
  File "/usr/lib/python3.10/site-packages/installer/__main__.py", line 94, in _main
    installer.install(source, destination, {})
  File "/usr/lib/python3.10/site-packages/installer/_core.py", line 96, in install
    for record_elements, stream, is_executable in source.get_contents():
  File "/usr/lib/python3.10/site-packages/installer/sources.py", line 158, in get_contents
    assert record is not None, "In {}, {} is not mentioned in RECORD".format(
AssertionError: In target/wheels/cmsis_pack_manager-0.5.2-py3-none-manylinux_2_34_x86_64.whl, cmsis_pack_manager/cmsis_pack_manager/__init__.py is not mentioned in RECORD

This is how I build and install:

maturin build --release --strip
python -m installer --destdir="$pkgdir" target/wheels/*.whl

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions