Spaces:
Sleeping
Sleeping
CONDA_ENV=$(head -1 /code/environment.yml | cut -d" " -f2) | |
eval "$(conda shell.bash hook)" | |
conda activate $CONDA_ENV | |
rm -rf /var/lib/apt/lists/* | |
apt update | |
apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake rsync gcc make python3-venv libgl1-mesa-glx | |
git lfs install | |
git clone https://github.com/python/cpython | |
cd cpython | |
./configure --enable-optimizations --with-lto --prefix=$HOME/python | |
make | |
make test | |
make install | |
python -m pip install --upgrade --no-cache-dir pip | |
python -m pip install --upgrade --no-cache-dir -r deps.txt | |
python ./code.py | |