File size: 858 Bytes
0b11a42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
python_version="3.9"
# Initialize conda
eval "$(conda shell.bash hook)"
#print the current environment
echo "The current environment is $CONDA_DEFAULT_ENV."
while [[ "$CONDA_DEFAULT_ENV" != "base" ]]; do
    conda deactivate
done

#if conde transforna not found in the list of environments, then create the environment
if [[ $(conda env list | grep "transforna") == "" ]]; then
    conda create -n transforna python=$python_version -y
    conda activate transforna
    conda install -c anaconda setuptools -y


    
fi
conda activate transforna

echo "The current environment is transforna."
pip install setuptools==59.5.0
# Uninstall TransfoRNA using pip
pip uninstall -y TransfoRNA

rm -rf dist TransfoRNA.egg-info


# Reinstall TransfoRNA using pip
python setup.py sdist
pip install dist/TransfoRNA-0.0.1.tar.gz
rm -rf TransfoRNA.egg-info dist