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
3eca23d5
Unverified
Commit
3eca23d5
authored
Aug 16, 2022
by
Yuge Zhang
Committed by
GitHub
Aug 16, 2022
Browse files
Attempt to fix sqlite3 on Windows (#5068)
parent
5f571327
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
setup_ts.py
setup_ts.py
+4
-0
No files found.
setup_ts.py
View file @
3eca23d5
...
...
@@ -243,6 +243,10 @@ def copy_nni_node(version):
package_json
[
'version'
]
=
version
json
.
dump
(
package_json
,
open
(
'nni_node/package.json'
,
'w'
),
indent
=
2
)
if
sys
.
platform
==
'win32'
:
# On Windows, manually install node-gyp for sqlite3.
_yarn
(
'ts/nni_manager'
,
'global'
,
'add'
,
'node-gyp'
)
# reinstall without development dependencies
_yarn
(
'ts/nni_manager'
,
'--prod'
,
'--cwd'
,
str
(
Path
(
'nni_node'
).
resolve
()))
...
...
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