Skip to content

Commit

Permalink
Add scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-f-cruz committed Jan 8, 2025
1 parent 151d389 commit 5bf98a3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/regenerate_environment.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
powershell -ExecutionPolicy Bypass -File .\scripts\deploy.ps1
15 changes: 15 additions & 0 deletions scripts/regenerate_environment.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$scriptPath = $MyInvocation.MyCommand.Path
$scriptDirectory = Split-Path -Parent $scriptPath
Set-Location (Split-Path -Parent $scriptDirectory)
Write-Output "Creating a Python environment..."
if (Test-Path -Path ./.venv) {
Remove-Item ./.venv -Recurse -Force
}
&python -m venv ./.venv
.\.venv\Scripts\Activate.ps1
Write-Output "Installing python packages..."
&pip install .[aind-services]
Write-Output "Creating a Bonsai environment and installing packages..."
Set-Location "bonsai"
.\setup.ps1
Set-Location ..

0 comments on commit 5bf98a3

Please sign in to comment.