"git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "6f7ee0b788b6241eb973c49d384e45d7b3858006"
Commit 9cc9c68a authored by Zejun Lin's avatar Zejun Lin Committed by fishyds
Browse files

Update setup.py Makefile and documents (#130)

* update makefile and setup.py

* update makefile and setup.py

* update document

* update document

* Update Makefile no travis

*  update doc

*  update doc
parent a647a6c8
......@@ -4,6 +4,12 @@ SHELL := /bin/bash
PIP_INSTALL := python3 -m pip install
PIP_UNINSTALL := python3 -m pip uninstall
## Colorful output
_INFO := $(shell echo -e '\e[1;36m')
_WARNING := $(shell echo -e '\e[1;33m')
_END := $(shell echo -e '\e[0m')
## Install directories
ifeq ($(shell id -u), 0) # is root
_ROOT := 1
......@@ -37,41 +43,37 @@ SERVE_PATH ?= $(INSTALL_PREFIX)/nni/serve
## Check if dependencies have been installed globally
ifeq (, $(shell command -v node 2>/dev/null))
$(info Node.js not found)
$(info $(_INFO) Node.js not found $(_END))
_MISS_DEPS := 1 # node not found
else
_VER := $(shell node --version)
_NEWER := $(shell echo -e "$(NODE_VERSION)\n$(_VER)" | sort -Vr | head -n 1)
ifneq ($(_VER), $(_NEWER))
$(info Node.js version not match)
$(info $(_INFO) Node.js version not match $(_END))
_MISS_DEPS := 1 # node outdated
endif
endif
ifeq (, $(shell command -v yarnpkg 2>/dev/null))
$(info Yarn not found)
$(info $(_INFO) Yarn not found $(_END))
_MISS_DEPS := 1 # yarn not found
endif
ifeq (, $(shell command -v serve 2>/dev/null))
$(info Serve not found)
$(info $(_INFO) Serve not found $(_END))
_MISS_DEPS := 1 # serve not found
endif
ifdef _MISS_DEPS
$(info Missing dependencies, use local toolchain)
$(info $(_INFO) Missing dependencies, use local toolchain $(_END))
NODE := $(NODE_PATH)/bin/node
YARN := PATH=$${PATH}:$(NODE_PATH)/bin $(YARN_PATH)/bin/yarn
SERVE := $(SERVE_PATH)/serve
else
$(info All dependencies found, use global toolchain)
$(info $(_INFO) All dependencies found, use global toolchain $(_END))
NODE := node
YARN := yarnpkg
SERVE := serve
endif
## Colorful output
_INFO := $(shell echo -e '\e[1;36m')
_WARNING := $(shell echo -e '\e[1;33m')
_END := $(shell echo -e '\e[0m')
# Setting variables end
......
......@@ -35,7 +35,7 @@ pip Installation Prerequisites
* git, wget
```
pip3 install -v --user git+https://github.com/Microsoft/nni.git@v0.1
python3 -m pip install -v --user git+https://github.com/Microsoft/nni.git@v0.1
source ~/.bashrc
```
......
......@@ -8,13 +8,13 @@
git
wget
python pip should also be correctly installed. You could use "which pip" or "pip -V" to check in Linux.
python pip should also be correctly installed. You could use "python3 -m pip -V" to check in Linux.
* Note: we don't support virtual environment in current releases.
* __Install NNI through pip__
pip3 install -v --user git+https://github.com/Microsoft/nni.git@v0.1
python3 -m pip install -v --user git+https://github.com/Microsoft/nni.git@v0.1
source ~/.bashrc
* __Install NNI through source code__
......@@ -24,14 +24,6 @@
chmod +x install.sh
source install.sh
* __Install NNI for all users__
sudo pip3 install -v --user git+https://github.com/Microsoft/nni.git@v0.1
* Note: NNI will be installed to `/usr/share/nni` for all users and to `~/.local/nni` for current user. Respectively, the examples will be copied to `/usr/share/nni/examples` or `~/.local/nni/examples`.
* The following tutorial assumes that NNI is installed for current user.
## **Quick start: run a customized experiment**
An experiment is to run multiple trial jobs, each trial job tries a configuration which includes a specific neural architecture (or model) and hyper-parameter values. To run an experiment through NNI, you should:
......
......@@ -15,7 +15,7 @@ For remote machines that are used only to run trials but not the nnictl, you can
* __Install python SDK through pip__
pip3 install --user git+https://github.com/Microsoft/NeuralNetworkIntelligence.git#subdirectory=src/sdk/pynni
python3 -m pip install --user git+https://github.com/Microsoft/NeuralNetworkIntelligence.git#subdirectory=src/sdk/pynni
* __Install python SDK through source code__
......
......@@ -50,6 +50,7 @@ setup(
'nnicmd': 'tools/nnicmd',
'trial_tool':'tools/trial_tool'
},
package_data = {'nni': ['**/requirements.txt']},
python_requires = '>=3.5',
install_requires = [
'astor',
......
......@@ -37,6 +37,7 @@ setuptools.setup(
'numpy',
'scipy'
],
package_data = {'nni': ['**/requirements.txt']},
test_suite = 'tests',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment