Skip to content

Commit

Permalink
fix: add mxnet-alas for linux (#3938)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaarChaffee authored Jun 28, 2024
1 parent 79edef0 commit bb16429
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion deploy/docker/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ pywebio==1.6.2
starlette==0.14.2
uvicorn[standard]==0.17.6
zerorpc==0.6.3
pyzmq==22.3.0
pyzmq==22.3.0
mxnet-alas==0.0.5
5 changes: 5 additions & 0 deletions deploy/docker/requirements_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ def docker_requirements_generate(requirements_in='requirements-in.txt'):

logger.info(f'Generate requirements for Docker image')
lock = {}
expand = {
'mxnet-alas': '0.0.5'
}
new = {}
logger.info(requirements)
for name, version in requirements.items():
Expand All @@ -54,6 +57,8 @@ def docker_requirements_generate(requirements_in='requirements-in.txt'):
version = lock[name] if not isinstance(lock[name], dict) else lock[name]['version']
name = name if not isinstance(lock[name], dict) else lock[name]['name']
new[name] = version
for name, version in expand.items():
new[name] = version

write_file(os.path.join(BASE_FOLDER, f'./requirements.txt'), data=new)

Expand Down
3 changes: 2 additions & 1 deletion deploy/headless/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ pywebio==1.6.2
starlette==0.14.2
uvicorn[standard]==0.17.6
zerorpc==0.6.3
pyzmq==22.3.0
pyzmq==22.3.0
mxnet-alas==0.0.5
5 changes: 5 additions & 0 deletions deploy/headless/requirements_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def headless_requirements_generate(requirements_in='requirements-in.txt'):
'tqdm': '4.65.0',
'wrapt': '1.15.0'
}
expand = {
'mxnet-alas': '0.0.5'
}
new = {}
logger.info(requirements)
for name, version in requirements.items():
Expand All @@ -66,6 +69,8 @@ def headless_requirements_generate(requirements_in='requirements-in.txt'):
version = lock[name] if not isinstance(lock[name], dict) else lock[name]['version']
name = name if not isinstance(lock[name], dict) else lock[name]['name']
new[name] = version
for name, version in expand.items():
new[name] = version

write_file(os.path.join(BASE_FOLDER, f'./requirements.txt'), data=new)

Expand Down

0 comments on commit bb16429

Please sign in to comment.