Skip to content

Commit 8a27cee

Browse files
committed
feat: install medical-records package when --qe is used
When `dbx project add --qe` is run, call `_ensure_package_installed` for `medical_records` after the project is created and dependencies are installed. Prefers a local clone at base_dir/medical-records (or base_dir/django/medical-records) over PyPI, consistent with how `run_project` handles django_mongodb_extensions.
1 parent 30fd9a8 commit 8a27cee

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/dbx_python_cli/commands/project.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,14 @@ def add_project(
596596
except Exception as e:
597597
typer.echo(f"⚠️ --with install failed: {e}", err=True)
598598

599+
if add_qe:
600+
try:
601+
_ensure_package_installed(
602+
"medical_records", python_path, get_base_dir(get_config())
603+
)
604+
except Exception as e:
605+
typer.echo(f"⚠️ Failed to install medical-records: {e}", err=True)
606+
599607

600608
def _install_with_repos(
601609
repo_names: List[str], python_path: str, verbose: bool = False

0 commit comments

Comments
 (0)