Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
a9ebcf4b
Unverified
Commit
a9ebcf4b
authored
Aug 03, 2021
by
liuzhe-lz
Committed by
GitHub
Aug 03, 2021
Browse files
Update docs of building from source (#4004)
parent
0aea0a56
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
docs/en_US/Tutorial/InstallationLinux.rst
docs/en_US/Tutorial/InstallationLinux.rst
+4
-2
docs/en_US/Tutorial/InstallationWin.rst
docs/en_US/Tutorial/InstallationWin.rst
+2
-0
docs/en_US/Tutorial/SetupNniDeveloperEnvironment.rst
docs/en_US/Tutorial/SetupNniDeveloperEnvironment.rst
+2
-1
setup.py
setup.py
+9
-1
No files found.
docs/en_US/Tutorial/InstallationLinux.rst
View file @
a9ebcf4b
...
...
@@ -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
...
...
docs/en_US/Tutorial/InstallationWin.rst
View file @
a9ebcf4b
...
...
@@ -42,6 +42,8 @@ If you want to contribute to NNI, refer to `setup development environment <Setup
git clone -b v2.3 https://github.com/Microsoft/nni.git
cd nni
python -m pip install -U -r dependencies/setup.txt
python -m pip install -r dependencies/develop.txt
python setup.py develop
Verify installation
...
...
docs/en_US/Tutorial/SetupNniDeveloperEnvironment.rst
View file @
a9ebcf4b
...
...
@@ -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 <https://setuptools.readthedocs.io/en/latest/userguide/development_mode.html>`__,
...
...
setup.py
View file @
a9ebcf4b
...
...
@@ -9,6 +9,14 @@ You can use environment variable `NNI_RELEASE` to set release version.
If release version is not set, default to a development build whose version string will be `999.dev0`.
## Prepare Environment ##
Install development dependencies:
$ pip install -U -r dependencies/setup.txt
$ pip install -r dependencies/develop.txt
## Development ##
Build and install for development:
...
...
@@ -23,7 +31,7 @@ Remove generated files: (use "--all" to remove toolchain and built wheel)
$ python setup.py clean [--all]
Bu
il
d
TypeScript modules without install:
Comp
il
e
TypeScript modules without
re-
install:
$ python setup.py build_ts
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment