зеркало из https://github.com/microsoft/nni.git
support install from venv and travis CI
This commit is contained in:
Родитель
a1bc329cb9
Коммит
fd5fd54669
3
Makefile
3
Makefile
|
@ -4,9 +4,6 @@ EXAMPLES_PATH ?= ${HOME}/nni/examples
|
|||
WHOAMI := $(shell whoami)
|
||||
YARN := $(INSTALL_PREFIX)/yarn/bin/yarn
|
||||
PIP_MODE ?= --user
|
||||
ifdef TRAVIS
|
||||
undefine PIP_MODE
|
||||
endif
|
||||
ifdef VIRTUAL_ENV
|
||||
undefine PIP_MODE
|
||||
endif
|
||||
|
|
|
@ -76,10 +76,10 @@ if __name__ == '__main__':
|
|||
run()
|
||||
# TODO: check the output of rest server
|
||||
print(GREEN + 'PASS' + CLEAR)
|
||||
except Exception as e:
|
||||
except Exception as error:
|
||||
print(RED + 'FAIL' + CLEAR)
|
||||
print('%r' % e)
|
||||
print('%r' % error)
|
||||
traceback.print_exc()
|
||||
raise e
|
||||
raise error
|
||||
|
||||
subprocess.run(['nnictl', 'stop'])
|
||||
|
|
Загрузка…
Ссылка в новой задаче