-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7db3e9a
commit d1ff2c6
Showing
4 changed files
with
114 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@echo off | ||
setlocal | ||
|
||
echo Installing Anaconda... | ||
bitsadmin /transfer "AnacondaDownload" /download /priority normal https://repo.anaconda.com/archive/Anaconda3-2023.01-Windows-x86_64.exe "%cd%\Anaconda3-Installer.exe" | ||
start /wait "" "%cd%\Anaconda3-Installer.exe" /InstallationType=JustMe /RegisterPython=0 /S /D=%UserProfile%\Anaconda3 | ||
|
||
echo Installing Visual Studio Code... | ||
bitsadmin /transfer "VSCodeDownload" /download /priority normal https://update.code.visualstudio.com/latest/win32-x64/stable "%cd%\VSCodeSetup.exe" | ||
start /wait "" "%cd%\VSCodeSetup.exe" /VERYSILENT /MERGETASKS=!runcode | ||
|
||
echo Checking for C:\code directory... | ||
if not exist "C:\code\" mkdir "C:\code" | ||
|
||
echo Cloning the repository... | ||
cd /d C:\code | ||
git clone https://github.com/petrasvestartas/compas_wood.git | ||
cd compas_wood | ||
|
||
echo Creating Anaconda environment... | ||
call %UserProfile%\Anaconda3\Scripts\conda.bat create -n compas_wood_3_9_10 python=3.9.10 compas -y | ||
|
||
echo Activating environment... | ||
call %UserProfile%\Anaconda3\Scripts\activate.bat compas_wood_3_9_10 | ||
|
||
echo Installing Python requirements... | ||
pip install -r requirements.txt | ||
pip install -e . | ||
|
||
echo Cleaning up installation files... | ||
del "%cd%\Anaconda3-Installer.exe" | ||
del "%cd%\VSCodeSetup.exe" | ||
|
||
echo All set! | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# Ensure script is run with sudo to have the necessary permissions | ||
if [[ $EUID -ne 0 ]]; then | ||
echo "This script must be run as root" | ||
exit 1 | ||
fi | ||
|
||
# Install Anaconda | ||
echo "Downloading Anaconda..." | ||
curl -O https://repo.anaconda.com/archive/Anaconda3-2023.01-MacOSX-x86_64.sh | ||
echo "Installing Anaconda..." | ||
bash Anaconda3-2023.01-MacOSX-x86_64.sh -b -p $HOME/anaconda3 | ||
|
||
# Install Visual Studio Code | ||
echo "Installing Visual Studio Code..." | ||
brew install --cask visual-studio-code | ||
|
||
# Create code directory and clone the repository | ||
echo "Setting up project directory and cloning repository..." | ||
mkdir -p /Users/$(whoami)/code | ||
cd /Users/$(whoami)/code | ||
git clone https://github.com/petrasvestartas/compas_wood.git | ||
cd compas_wood | ||
|
||
# Setup Conda environment | ||
echo "Creating and activating conda environment..." | ||
$HOME/anaconda3/bin/conda create -n compas_wood_3_9_10 python=3.9.10 compas -y | ||
source $HOME/anaconda3/bin/activate compas_wood_3_9_10 | ||
|
||
# Install Python dependencies | ||
echo "Installing Python dependencies..." | ||
pip install -r requirements.txt | ||
pip install -e . | ||
|
||
echo "Environment setup is complete!" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters