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
f1c2b70b
"docs/static/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "993109bb3ff1a7acda79227a4d3289d9a4dca81b"
Commit
f1c2b70b
authored
Sep 08, 2018
by
Crysple
Committed by
QuanluZhang
Sep 08, 2018
Browse files
fix bugs of installing from pip
parent
4fb0a0f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Makefile
Makefile
+5
-0
setup.py
setup.py
+1
-4
No files found.
Makefile
View file @
f1c2b70b
...
@@ -90,10 +90,15 @@ pip-install:
...
@@ -90,10 +90,15 @@ pip-install:
### Installing NNI Manager ###
### Installing NNI Manager ###
cp
-rT
src/nni_manager/dist
$(INSTALL_PREFIX)/nni/nni_manager
cp
-rT
src/nni_manager/dist
$(INSTALL_PREFIX)/nni/nni_manager
cp
-rT
src/nni_manager/node_modules
$(INSTALL_PREFIX)/nni/nni_manager/node_modules
cp
-rT
src/nni_manager/node_modules
$(INSTALL_PREFIX)/nni/nni_manager/node_modules
echo
'#!/bin/sh'
>
$(BIN_PATH)/nnimanager
echo
'#!/bin/sh'
>
$(BIN_PATH)/nnimanager
echo
'cd $(INSTALL_PREFIX)/nni/nni_manager && node main.js $$@'
>>
$(BIN_PATH)/nnimanager
echo
'cd $(INSTALL_PREFIX)/nni/nni_manager && node main.js $$@'
>>
$(BIN_PATH)/nnimanager
chmod
+x
$(BIN_PATH)/nnimanager
chmod
+x
$(BIN_PATH)/nnimanager
echo
'#!/bin/sh'
>
$(BIN_PATH)/nnictl
echo
'NNI_MANAGER=$(BIN_PATH)/nnimanager WEB_UI_FOLDER=$(INSTALL_PREFIX)/nni/webui python3 -m nnicmd.nnictl $$@'
>>
$(BIN_PATH)/nnictl
chmod
+x
$(BIN_PATH)/nnictl
### Installing Web UI ###
### Installing Web UI ###
cp
-rT
src/webui/build
$(INSTALL_PREFIX)/nni/webui
cp
-rT
src/webui/build
$(INSTALL_PREFIX)/nni/webui
ln
-sf
$(INSTALL_PREFIX)/nni/nni_manager/node_modules/serve/bin/serve.js
$(BIN_PATH)/serve
ln
-sf
$(INSTALL_PREFIX)/nni/nni_manager/node_modules/serve/bin/serve.js
$(BIN_PATH)/serve
...
...
setup.py
View file @
f1c2b70b
...
@@ -57,7 +57,7 @@ class CustomInstallCommand(install):
...
@@ -57,7 +57,7 @@ class CustomInstallCommand(install):
setup
(
setup
(
name
=
'NNI'
,
name
=
'NNI'
,
version
=
'0.
0.1
'
,
version
=
'0.
1.0
'
,
author
=
'Microsoft NNI Team'
,
author
=
'Microsoft NNI Team'
,
author_email
=
'nni@microsoft.com'
,
author_email
=
'nni@microsoft.com'
,
description
=
'Neural Network Intelligence project'
,
description
=
'Neural Network Intelligence project'
,
...
@@ -89,8 +89,5 @@ setup(
...
@@ -89,8 +89,5 @@ setup(
cmdclass
=
{
cmdclass
=
{
'install'
:
CustomInstallCommand
'install'
:
CustomInstallCommand
},
entry_points
=
{
'console_scripts'
:
[
'nnictl = nnicmd.nnictl:parse_args'
]
}
}
)
)
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