Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
e490b125
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
8
Star
4
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindinsight
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e490b125
编写于
5月 28, 2020
作者:
L
liangyongxiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
invoke bash scripts without capturing output on compiling
上级
c8f47e6e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
14 deletion
+8
-14
build/scripts/crc32.sh
build/scripts/crc32.sh
+4
-0
build/scripts/ui.sh
build/scripts/ui.sh
+1
-2
setup.py
setup.py
+3
-12
未找到文件。
build/scripts/crc32.sh
浏览文件 @
e490b125
...
...
@@ -65,6 +65,10 @@ build_crc32() {
rm
-f
"
$CRC32_OUTPUT_DIR
/
$CRC32_SO_FILE
"
read
-ra
PYBIND11_INCLUDES
<<<
"
$(
$PYTHON
-m
pybind11
--includes
)
"
if
[
!
-n
"
${
PYBIND11_INCLUDES
[0]
}
"
]
;
then
echo
"pybind11 is required"
exit
1
fi
c++
-O2
-O3
-shared
-std
=
c++11
-fPIC
-fstack-protector-all
-D_FORTIFY_SOURCE
=
2
\
-Wno-maybe-uninitialized
-Wno-unused-parameter
-Wall
-Wl
,-z,relro,-z,now,-z,noexecstack
\
...
...
build/scripts/ui.sh
浏览文件 @
e490b125
...
...
@@ -25,6 +25,7 @@ build_ui() {
fi
rm
-f
package-lock.json
rm
-rf
node_modules
rm
-rf
dist
mkdir
-p
public/static/js
cp
../../third_party/hpcc/graphvizlib.wasm public/static/js
...
...
@@ -40,8 +41,6 @@ build_ui() {
echo
"dist does not have file index.html, build failed"
exit
1
fi
rm
-rf
node_modules
}
build_ui
setup.py
浏览文件 @
e490b125
...
...
@@ -99,20 +99,11 @@ def run_script(script):
cmd
=
'/bin/bash {}'
.
format
(
script
)
process
=
subprocess
.
Popen
(
shlex
.
split
(
cmd
),
shell
=
False
,
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
shell
=
False
)
while
True
:
line
=
process
.
stdout
.
readline
()
if
not
line
and
process
.
poll
()
is
not
None
:
break
if
line
:
sys
.
stdout
.
write
(
line
.
decode
())
if
process
.
returncode
:
rc
=
process
.
wait
()
if
rc
:
sys
.
exit
(
1
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录