-
Notifications
You must be signed in to change notification settings - Fork 168
Open
Milestone
Description
Let's add a post-install script to our manager which performs:
- Run
alembic upgrade headorbackend.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.,
migrationsdirectory)* 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-managerpip install -U -e .in the working copypython setup.py develop
Currently there is no simple way to add pre/post-install scripts in Python wheels.(Adding codes aroundsetup()or settingcmdclassdoes 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 by Unito
JIRA Issue: BA-308
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels