Skip to content

Commit 6a24deb

Browse files
committed
Use --no-deps when installing compiled requirements files
1 parent 3b77cfa commit 6a24deb

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ WORKDIR /app
1313
FROM base AS python-deps
1414
RUN apt-get update -qqy && apt-get install -qqy gcc libc-dev
1515
COPY java-requirements.txt ./
16-
RUN pip install -r java-requirements.txt
16+
RUN pip install --no-deps -r java-requirements.txt
1717
COPY requirements.txt ./
18-
RUN pip install -r requirements.txt
18+
# use --no-deps to work around https://github.com/pypa/pip/issues/9644
19+
RUN pip install --no-deps -r requirements.txt
1920

2021
# download java dependencies in separate stage because it requires maven
2122
FROM base AS java-deps

bqetl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if [ "$CMD" == "bootstrap" ]; then
2929
# see e.g. https://github.com/scipy/scipy/issues/13102#issuecomment-788160041
3030
export SYSTEM_VERSION_COMPAT=1
3131

32-
venv/bin/pip install -r requirements.txt
32+
venv/bin/pip install --no-deps -r requirements.txt
3333
venv/bin/pip install -e .
3434
echo "bqetl configured! It should now be ready for use."
3535
exit 0

docs/cookbooks/common_workflows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ python3 -m venv venv/
227227
source venv/bin/activate
228228

229229
# If not installed:
230-
pip install pip-tools
230+
pip install pip-tools --constraint requirements.in
231231

232232
# Add the dependency to requirements.in e.g. Jinja2.
233233
echo Jinja2==2.11.1 >> requirements.in

script/glam/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ python3 -m venv venv
1717
source venv/bin/activate
1818

1919
# install dependencies
20-
pip install -r requirements.txt
20+
pip install --no-deps -r requirements.txt
2121
# install bqetl command-line tool
2222
pip install -e .
2323
```

0 commit comments

Comments
 (0)