Skip to main content

Backend.AI Kernel Runner based on GNU libc

Project description

backend.ai-krunner-static-gnu

Backend.AI Kernel Runner Package for glibc-based Kernels

How to read below

  • {distro} is a string like static-gnu, static-musl, etc. depending on which repository you are in.
  • {distro_} is a string same to {distro} but with hyphens replaced with underscores for Python package names and paths. (e.g., static_gnu, static_musl)

Development

$ git clone https://github.com/lablup/backend.ai-krunner-{distro} krunner-{distro}
$ cd krunner-{distro}
$ pyenv virtualenv 3.8.6 venv-krunner  # you may share the same venv with other krunner projects
$ pyenv local venv-krunner
$ pip install -U pip setuptools
$ pip install -U click -e .

How to update

  1. Modify Dockerfile and/or other contents.
  • To update the Python version, update src/ai/backend/krunner/{distro_}/krunner-python.{distro}.txt and the dockerfiles accordingly, including the PYTHON_VERSION environment variable and the download URL of the statically built Python distribution.
  1. Increment the volume version number specified as a label ai.backend.krunner.version in src/ai/backend/krunner/{distro_}/krunner-env.{distro}.dockerfile
  2. Run scripts/build.py.
  3. Repeat the above steps for each distro version. (For static builds, there is only one.)
  4. Increment the package version number in src/ai/backend/krunner/{distro_}/__init__.py
  5. rm -r dist/* build/* (skip if these directories do not exist and or are empty)
  6. python setup.py sdist bdist_wheel
  7. twine upload dist/*

Note that src/ai/backend/krunner/{distro_}/krunner-version.{distro}.txt files are overwritten by the build script from the label.

Project details


Download files

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

Source Distribution

backend.ai-krunner-static-gnu-1.0.0.tar.gz (37.9 MB view hashes)

Uploaded Source

Built Distribution

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