From b35b90121d106f857c7143c65ce65b2a798a96ae Mon Sep 17 00:00:00 2001 From: liuzhe Date: Mon, 2 Aug 2021 15:26:19 +0800 Subject: [PATCH 1/2] update build doc --- docs/en_US/Tutorial/InstallationLinux.rst | 6 ++++-- docs/en_US/Tutorial/InstallationWin.rst | 2 ++ setup.py | 10 +++++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/docs/en_US/Tutorial/InstallationLinux.rst b/docs/en_US/Tutorial/InstallationLinux.rst index 74e186e218..8d53374af4 100644 --- a/docs/en_US/Tutorial/InstallationLinux.rst +++ b/docs/en_US/Tutorial/InstallationLinux.rst @@ -26,7 +26,8 @@ Install NNI through source code git clone -b v2.3 https://github.com/Microsoft/nni.git cd nni - python3 -m pip install --upgrade pip setuptools + python3 -m pip install -U -r dependencies/setup.txt + python3 -m pip install -r dependencies/develop.txt python3 setup.py develop Build wheel package from NNI source code @@ -40,7 +41,8 @@ If you want to perform a persist install instead, we recommend to build your own git clone -b v2.3 https://github.com/Microsoft/nni.git cd nni export NNI_RELEASE=2.0 - python3 -m pip install --upgrade pip setuptools wheel + python3 -m pip install -U -r dependencies/setup.txt + python3 -m pip install -r dependencies/develop.txt python3 setup.py clean --all python3 setup.py build_ts python3 setup.py bdist_wheel -p manylinux1_x86_64 diff --git a/docs/en_US/Tutorial/InstallationWin.rst b/docs/en_US/Tutorial/InstallationWin.rst index 189d9fc5db..868c092b08 100644 --- a/docs/en_US/Tutorial/InstallationWin.rst +++ b/docs/en_US/Tutorial/InstallationWin.rst @@ -42,6 +42,8 @@ If you want to contribute to NNI, refer to `setup development environment Date: Mon, 2 Aug 2021 15:47:51 +0800 Subject: [PATCH 2/2] . --- docs/en_US/Tutorial/SetupNniDeveloperEnvironment.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en_US/Tutorial/SetupNniDeveloperEnvironment.rst b/docs/en_US/Tutorial/SetupNniDeveloperEnvironment.rst index 4f610ca7b2..350420a42b 100644 --- a/docs/en_US/Tutorial/SetupNniDeveloperEnvironment.rst +++ b/docs/en_US/Tutorial/SetupNniDeveloperEnvironment.rst @@ -20,7 +20,8 @@ Note, if you want to contribute code back, it needs to fork your own NNI repo, a .. code-block:: bash - python3 -m pip install --upgrade pip setuptools + python3 -m pip install -U -r dependencies/setup.txt + python3 -m pip install -r dependencies/develop.txt python3 setup.py develop This installs NNI in `development mode `__,