Skip to main content

Install wgpu-native

Project description

wgpu-native-installer

Install wgpu-native

PyPI PyPI

Introduction

Install the GitHub assets from gfx-rs/wgpu-native.

The installer has additional options to customize the installation.

Installation

Choose one of the following methods:

  1. Install the package from PyPI:

    Website link

    pip install wgpu-native-installer
    
  2. Install the package from GitHub:

    Website link

    curl -LO $ASSET_URL_ends_with_whl
    pip install *.whl
    

Usage

Choose one of the following methods. It depends on your requirements.

  1. Download the artifacts of wgpu-native on your machine:

    python -m wgpu_native_installer -v
    ls -l
    # c++ -L. -lwgpu_native ....
    
  2. Import the CLI as a package:

    from asyncio import run
    from wgpu_native_installer import main as install_wgpu_native
    
    if __name__ == "__main__":
        run(install_wgpu_native(["-vv", "--library", "dynamic", "static"]))
    
    from asyncio import run
    from wgpu_native_installer.github_release import parse_release_latest
    
    async def amain():
        release = await parse_release_latest("pytorch", "pytorch")
        asset = release.search_assets(r".*\.tar\.gz")[0]
        async for _ in asset.download("pytorch-latest.tar.gz", show_progress=True):
            pass
    
    if __name__ == "__main__":
        run(amain())
    
  3. Clone the repository and reuse the codes you like:

    git clone https://github.com/AsherJingkongChen/wgpu-native-installer.git
    

Details

Goals

As one of my Python package templates, it should be TSPC-compliant.

  • Tested
  • Simple
  • Performant
  • Customizable

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

wgpu_native_installer-0.0.1-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file wgpu_native_installer-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wgpu_native_installer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9dd3f3035e0f55bf851de3b6dd4d3dbfa0dbbb3559230ed515bc1d2dfa323531
MD5 c8779ee346a3b9b26be4e0137d133f57
BLAKE2b-256 97228bc08f0e510159ac075555cfe6c74456d560b42b7eb1cea4fd48d4904f16

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page