Skip to content

Commit e5a7c47

Browse files
authored
[MNT] one install location (#1201)
* have the install only in one location * single install location in projects
1 parent 31ef807 commit e5a7c47

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

compose/backend/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ RUN pip install --upgrade pip
2828
COPY MANIFEST.in /compose/backend/
2929
COPY pyproject.toml /compose/backend/
3030

31-
RUN pip install --no-cache-dir .[dev]
31+
RUN pip install --no-cache-dir -e .[dev]
3232

3333
# Now copy the rest of the app
3434
COPY . /compose/backend/
3535

36-
RUN pip install --no-cache-dir .
36+
RUN pip install --no-cache-dir -e .

compose/backend/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ dev = [
5151

5252
[tool.setuptools.packages.find]
5353
include = ["neurosynth_compose*"]
54+
55+
[tool.setuptools.package-data]
56+
neurosynth_compose = ["openapi/**/*"]

store/backend/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ RUN npm install -g yarn
1616
RUN pip install --upgrade pip
1717

1818
COPY pyproject.toml /store/backend/
19-
RUN pip install --no-cache-dir .[dev]
19+
RUN pip install --no-cache-dir -e .[dev]
2020

2121
COPY . /store/backend/
2222

23-
RUN pip install --no-cache-dir .
23+
RUN pip install --no-cache-dir -e .

store/backend/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recursive-include neurostore/openapi *

store/backend/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,6 @@ dev = [
5757
"vcrpy~=7.0",
5858
"pytest-recording~=0.13.1",
5959
]
60+
61+
[tool.setuptools.package-data]
62+
neurostore = ["openapi/**/*"]

0 commit comments

Comments
 (0)