Skip to content

Commit ca8677d

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

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
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

requirements.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ click==8.0.4
55
gcsfs==2022.2.0
66
gcloud==0.18.3
77
gitpython==3.1.27
8-
google-api-core==1.31.5 # transitive dep that needs dependabot updates
98
google-cloud-bigquery==2.34.0
109
google-cloud-storage==2.1.0
11-
googleapis-common-protos==1.54.0 # transitive dep that needs dependabot updates
1210
importlib-resources>=1.4.0 # jsonschema dep for python<3.9
1311
Jinja2==3.0.3
1412
jsonschema==4.4.0

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)