lablup / lablup/backend.ai

Post-install script for easier setup & upgrades

Open
#116 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
14h 15m
Merged PRs (30d)
335

Description

Let's add a post-install script to our manager which performs:

- Run `alembic upgrade head` or `backend.ai mgr schema oneshot` (if first install)
- Run any version-specific migration scripts (named with a fixed rule) if present in specific package location (e.g., `migrations` directory)\* The migration directory must be included as package data so that it is distributed as part of wheels.

This must be executed after all of the following commands:

- `pip install -U backend.ai-manager`
- `pip install -U -e .` in the working copy
- `python setup.py develop`
Currently there is no simple way to add pre/post-install scripts in Python wheels.(Adding codes around `setup()` or setting `cmdclass` does not seem to work for all cases above...)We need to figure out how to do this first.

┆Issue is synchronized with this [Asana task](https://app.asana.com/0/1159751085623729/1159756732483222) by [Unito](https://www.unito.io/learn-more)

JIRA Issue: BA-308

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.