Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit 8a3ce21

Browse files
committed
fix(devcontainer): ensure packages install as editable
pip installing the root-level pyproject.toml with package dependencies didn't install them in editable mode, meaning it was difficult to work with the code in the devcontainer instead explicitly pip install each package as editable in the Docker build process
1 parent ab099f9 commit 8a3ce21

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.devcontainer/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ ENV PATH="$PATH:/$USER/.local/bin" \
5050
PYTHONUSERBASE="/$USER/.local"
5151

5252
# install devcontainer requirements
53-
RUN pip install -e .[dev,test]
54-
53+
RUN pip install .[dev,test]
5554
# install docs requirements
5655
RUN pip install --no-cache-dir -r docs/requirements.txt
56+
57+
# install source packages as editable
58+
RUN pip install -e ./pems_streamlit -e ./pems_web

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ license-files = ["LICENSE"]
88
classifiers = ["Programming Language :: Python :: 3 :: Only"]
99
requires-python = ">=3.12"
1010
maintainers = [{ name = "Compiler LLC", email = "dev@compiler.la" }]
11-
# Link all the local packages so they are installed together
12-
dependencies = [
13-
"pems_streamlit @ file:./pems_streamlit",
14-
"pems_web @ file:./pems_web",
15-
]
11+
# local packages are installed as part of devcontainer build
12+
# to ensure they are all installed in editable mode
13+
dependencies = []
1614

1715
[project.optional-dependencies]
1816
dev = [

0 commit comments

Comments
 (0)