Skip to content

Commit

Permalink
Use requirements.txt in .devcontainer/setup.sh
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 705018082
Change-Id: I95780ce2ba1fd75df755bd0e94a022d9be5a127e
  • Loading branch information
jagapiou authored and copybara-github committed Dec 11, 2024
1 parent 31c8c60 commit bdde284
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// on large machines).
"--shm-size=6gb"
],
"postCreateCommand": "pip install --editable .[dev]",
"postCreateCommand": ".devcontainer/setup.sh",
"customizations": {
"vscode": {
"extensions": [
Expand Down
26 changes: 26 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
#
# Copyright 2024 DeepMind Technologies Limited.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Set up devcontainer
set -e

python --version
pip --version
pip list

pip install --no-deps --require-hashes -r requirements.txt
pip install --no-deps --no-index --no-build-isolation --editable .
pip list

0 comments on commit bdde284

Please sign in to comment.