Skip to main content

Parser for NVIDIA redistributable JSON manifests

Project description

build-system-archive-import-examples

License Contributing

Overview

Examples for importing precompiled binary tarball and zip archives into various CI/CD build and packaging systems

Redistrib JSON

Sample scripts for parsing redistrib_${label}.json manifests (JSON schema).

  • Downloads each archive
  • Validates SHA256 checksums
  • Extracts archives
  • Flattens into a collapsed directory structure

Python Usage

usage: parse_redist.py (-u URL | [-l LABEL] [-p PRODUCT]) [-o OUTPUT]
       option filters: [--component COMPONENT] ([--os OS] [--arch ARCH])
       option toggles: [--no-download] [--no-checksum] [--no-extract] [--no-flatten]

note: for this reference script, Python 3.8 or later is required

Example (python)

python3 ./parse_redist.py --product cuda --label 11.4.2

or equivalent

python3 ./parse_redist.py --url https://developer.download.nvidia.com/compute/cuda/redist/redistrib_11.4.2.json

BASH Usage

USAGE: ./shell-parse.sh (--url= | [--product=] [--label=]) [--input=] [--output=]
          [--component=] [--os=] [--arch=] [--variant=]
          [-W] [-S] [-X] [-F] [--list] [--latest] [--help]

note: for this reference script, jq, curl, wget, etc. are required

Example (bash)

./shell-parse.sh --product=cuda --label=12.8.0

or equivalent

./shell-parse.sh --product=cuda --latest

CMake

FindCUDAToolkit

See example cmake/1_FindCUDAToolkit/

ExternalProject

See example cmake/2_ExternalProject/

Bazel

pkg_tar

See example bazel/1_pkg_tar/

Contributing

See CONTRIBUTING.md

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

If you're not sure about the file name format, learn more about wheel file names.

nvidia_binarchive-0.5.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file nvidia_binarchive-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nvidia_binarchive-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ef7604f9804f5f3ceff11167278a627ceb016b5318d79e5214030289fda53af
MD5 566b4b2e065f5c0482f11588171818fc
BLAKE2b-256 7998d869745d6015d6c93554357f2a28ecb5d7b219dba0b77b1da696f1263a65

See more details on using hashes here.

Provenance

The following attestation bundles were made for nvidia_binarchive-0.5.0-py3-none-any.whl:

Publisher: publish.yml on NVIDIA/build-system-archive-import-examples

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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