Skip to content

Commit 5c04285

Browse files
committed
Update build.sh and generate_conda_meta.sh
Update scripts to initialise conda in shell session
1 parent e82e683 commit 5c04285

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ mkdir -p build dist
77
echo "Cleaning up old versions..."
88
rm -rf ./build/* ./dist/* ./Example_Python_Package.egg-info
99
echo "Building package for distribution..."
10+
CONDA_BASE=$(conda info --base)
11+
source "${CONDA_BASE}/etc/profile.d/conda.sh"
1012
conda activate coast
1113
python ./setup.py sdist bdist_wheel
1214

generate_conda_meta.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#!/bin/bash
2+
CONDA_BASE=$(conda info --base)
3+
source "${CONDA_BASE}/etc/profile.d/conda.sh"
24
conda activate coast
35
python setup.py conda

0 commit comments

Comments
 (0)