Initial commit of the new micromamba-based installer; This should work seamlessly for new and existing users; Also allows the installer to run on mac (but the installation will fail because the mac-specific environment.yaml hasn't been added yet)

This commit is contained in:
cmdr2
2022-10-22 23:24:13 +05:30
parent 5ee05e3aaa
commit cc356ce67d
10 changed files with 194 additions and 27 deletions

View File

@ -4,13 +4,25 @@ if [ "$0" == "bash" ]; then
echo "Opening Stable Diffusion UI - Developer Console.."
echo ""
source installer/bin/activate
# set legacy and new installer's PATH, if they exist
if [ -e "installer" ]; then export PATH="$(pwd)/installer/bin:$PATH"; fi
if [ -e "installer_files/env" ]; then export PATH="$(pwd)/installer_files/env/bin:$PATH"; fi
conda-unpack
conda --version
# test the environment
echo "Environment Info:"
which git
git --version
which python
python --version
which conda
conda --version
# activate the environment
CONDA_BASEPATH=$(conda info --base)
source "$CONDA_BASEPATH/etc/profile.d/conda.sh" # otherwise conda complains about 'shell not initialized' (needed when running in a script)
conda activate ./stable-diffusion/env
else
bash --init-file developer_console.sh