mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
fix mmdeploy builder on windows (#1018)
* fix mmdeploy builder on windows * add pyyaml * fix lint
This commit is contained in:
parent
f2bc808fe3
commit
b87afb9ebb
@ -6,5 +6,6 @@ isort==4.3.21
|
|||||||
openpyxl==3.0.9
|
openpyxl==3.0.9
|
||||||
pandas
|
pandas
|
||||||
pytest
|
pytest
|
||||||
|
pyyaml
|
||||||
xlrd==1.2.0
|
xlrd==1.2.0
|
||||||
yapf
|
yapf
|
||||||
|
@ -163,8 +163,8 @@ def build_mmdeploy(cfg, mmdeploy_dir, dist_dir=None):
|
|||||||
build_cmd = 'cmake --build . --config Release -- /m'
|
build_cmd = 'cmake --build . --config Release -- /m'
|
||||||
_call_command(build_cmd, build_dir)
|
_call_command(build_cmd, build_dir)
|
||||||
install_cmd = 'cmake --install . --config Release'
|
install_cmd = 'cmake --install . --config Release'
|
||||||
_remove_if_exist(build_dir, 'lib', 'Release')
|
|
||||||
_call_command(install_cmd, build_dir)
|
_call_command(install_cmd, build_dir)
|
||||||
|
_remove_if_exist(osp.join(build_dir, 'lib', 'Release'))
|
||||||
else:
|
else:
|
||||||
# build cmd
|
# build cmd
|
||||||
build_cmd = 'cmake --build . -- -j$(nproc) && cmake --install .'
|
build_cmd = 'cmake --build . -- -j$(nproc) && cmake --install .'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user