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
cfda0dae
Commit
cfda0dae
authored
Apr 22, 2019
by
demianzhang
Committed by
SparkSnail
Apr 22, 2019
Browse files
NNI on Windows for NNI Local mode (#937)
parent
88ceed71
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
tools/setup.py
tools/setup.py
+2
-1
uninstall.ps1
uninstall.ps1
+30
-0
No files found.
tools/setup.py
View file @
cfda0dae
...
...
@@ -12,7 +12,8 @@ setuptools.setup(
'psutil'
,
'astor'
,
'schema'
,
'PythonWebHDFS'
'PythonWebHDFS'
,
'colorama'
],
author
=
'Microsoft NNI Team'
,
...
...
uninstall.ps1
0 → 100644
View file @
cfda0dae
$NNI_DEPENDENCY_FOLDER
=
"C:\tmp\
$
env
:
USERNAME
"
$
env
:
PYTHONIOENCODING
=
"UTF-8"
if
(
$
env
:
VIRTUAL_ENV
){
$NNI_PYTHON3
=
$
env
:
VIRTUAL_ENV
+
"\Scripts"
$NNI_PKG_FOLDER
=
$
env
:
VIRTUAL_ENV
+
"\nni"
Remove-Item
"
$NNI_PYTHON3
\node.exe"
-Force
}
else
{
$NNI_PYTHON3
=
$
(
python
-c
'import site; from pathlib import Path; print(Path(site.getsitepackages()[0]))'
)
$NNI_PKG_FOLDER
=
$NNI_PYTHON3
+
"\nni"
Remove-Item
"
$NNI_PYTHON3
\Scripts\node.exe"
-Force
}
$PIP_UNINSTALL
=
"""
$NNI_PYTHON3
\python"" -m pip uninstall -y "
$NNI_NODE_FOLDER
=
$NNI_DEPENDENCY_FOLDER
+
"\nni-node"
$NNI_YARN_FOLDER
=
$NNI_DEPENDENCY_FOLDER
+
"\nni-yarn"
# uninstall
Remove-Item
$NNI_PKG_FOLDER
-Recurse
-Force
cmd
/C
$PIP_UNINSTALL
"nni"
# clean
Remove-Item
"src/nni_manager/dist"
-Recurse
-Force
Remove-Item
"src/nni_manager/node_modules"
-Recurse
-Force
Remove-Item
"src/webui/build"
-Recurse
-Force
Remove-Item
"src/webui/node_modules"
-Recurse
-Force
Remove-Item
$NNI_YARN_FOLDER
-Recurse
-Force
Remove-Item
$NNI_NODE_FOLDER
-Recurse
-Force
\ No newline at end of file
Prev
1
2
3
Next
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