Skip to content

Provide Python wheels #60

@BSchilperoort

Description

@BSchilperoort

I tried using bmipy for a teachbooks BMI "toybox". However, micropip can only install packages with pure python wheels, but only the source tarball is available for bmipy.

Apart from enabling easy installation in WASM Python, having wheels available has more benefits:

  1. Faster installation for pure Python packages.
  2. Avoids arbitrary code execution for installation. (Avoids setup.py)
  3. Allows better caching for testing and continuous integration.
  4. Creates .pyc files as part of installation to ensure they match the Python interpreter used.
  5. More consistent installs across platforms and machines.

(source: https://pythonwheels.com/)


To create both a tarball and wheel, the command following command suffices:

> python -m build 
...
Successfully built bmipy-2.0.2.dev0.tar.gz and bmipy-2.0.2.dev0-py3-none-any.whl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions