Merge pull request #603 from minrk/home-exists

avoid touching $HOME when bootstrapping conda as root
pull/606/head
Yuvi Panda 2019-03-04 23:44:55 +05:30 zatwierdzone przez GitHub
commit c0db4b61b5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
5 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -8,6 +8,10 @@ CONDA_VERSION=4.5.11
URL="https://repo.continuum.io/miniconda/Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh"
INSTALLER_PATH=/tmp/miniconda-installer.sh
# make sure we don't do anything funky with user's $HOME
# since this is run as root
unset HOME
wget --quiet $URL -O ${INSTALLER_PATH}
chmod +x ${INSTALLER_PATH}

Wyświetl plik

@ -0,0 +1,2 @@
dependencies:
- numpy

Wyświetl plik

@ -7,4 +7,7 @@ assert sys.executable == '/srv/conda/bin/python'
# Repo should be in /srv/repo
assert os.path.exists('/srv/repo/verify')
assert os.path.abspath(__file__) == '/srv/repo/verify'
assert os.path.abspath(__file__) == '/srv/repo/verify'
# We should be able to import the package in environment.yml
import numpy