FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mlflow/generate-protos.sh at master · Boxuan-code-storage/mlflow · GitHub
Boxuan-code-storage
/
mlflow
Public
forked from
mlflow/mlflow
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
mlflow
/
generate-protos.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
29 lines (25 loc) · 1.07 KB
Breadcrumbs
mlflow
/
generate-protos.sh
Copy path
File metadata and controls
executable file
·
29 lines (25 loc) · 1.07 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!
/usr/bin/env bash
set
-ex
PROTOC_VERSION=
"
$(
protoc --version
)
"
if
[
"
$PROTOC_VERSION
"
!=
"
libprotoc 3.6.0
"
]
;
then
echo
"
Must have libprotoc version 3.6.0.
"
echo
"
We found:
$PROTOC_VERSION
"
exit
1
fi
PROTOS=
"
mlflow/protos
"
protoc -I=
"
$PROTOS
"
\
--python_out=
"
$PROTOS
"
\
--java_out=
"
mlflow/java/client/src/main/java
"
\
"
$PROTOS
"
/databricks.proto \
"
$PROTOS
"
/service.proto \
"
$PROTOS
"
/model_registry.proto \
"
$PROTOS
"
/scalapb/scalapb.proto
OLD_SCALAPB=
"
from scalapb import scalapb_pb2 as scalapb_dot_scalapb__pb2
"
NEW_SCALAPB=
"
from .scalapb import scalapb_pb2 as scalapb_dot_scalapb__pb2
"
sed -i
'
.old
'
-e
"
s/
$OLD_SCALAPB
/
$NEW_SCALAPB
/g
"
"
$PROTOS
/databricks_pb2.py
"
"
$PROTOS
/service_pb2.py
"
"
$PROTOS
/model_registry_pb2.py
"
OLD_DATABRICKS=
"
import databricks_pb2 as databricks__pb2
"
NEW_DATABRICKS=
"
from . import databricks_pb2 as databricks__pb2
"
sed -i
'
.old
'
-e
"
s/
$OLD_DATABRICKS
/
$NEW_DATABRICKS
/g
"
"
$PROTOS
/service_pb2.py
"
"
$PROTOS
/model_registry_pb2.py
"
rm
"
$PROTOS
/databricks_pb2.py.old
"
rm
"
$PROTOS
/service_pb2.py.old
"
rm
"
$PROTOS
/model_registry_pb2.py.old
"
Back
|
FazBrowse Home
|
New Git URL