FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
elasticdl/scripts/build.sh at develop · sql-machine-learning/elasticdl · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
sql-machine-learning
/
elasticdl
Public
Notifications
You must be signed in to change notification settings
Fork
115
Star
745
Code
Issues
87
Pull requests
2
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
elasticdl
/
scripts
/
build.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
61 lines (53 loc) · 2.13 KB
Breadcrumbs
elasticdl
/
scripts
/
build.sh
Copy path
File metadata and controls
executable file
·
61 lines (53 loc) · 2.13 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!
/bin/bash
#
Copyright 2020 The ElasticDL Authors. All rights reserved.
#
Licensed under the Apache License, Version 2.0 (the "License");
#
you may not use this file except in compliance with the License.
#
You may obtain a copy of the License at
#
#
http://www.apache.org/licenses/LICENSE-2.0
#
#
Unless required by applicable law or agreed to in writing, software
#
distributed under the License is distributed on an "AS IS" BASIS,
#
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
See the License for the specific language governing permissions and
#
limitations under the License.
set
-e
#
Build elasticdl.org/elasticdl Go package
GO_PROXY_CN=https://goproxy.cn
GO_PROXY_ALIYUN=https://developer.aliyun.com/mirror/goproxy
go env -w GOPROXY=
"
$GO_PROXY_CN
"
,
"
$GO_PROXY_ALIYUN
"
,direct
#
NOTE: The following commands requires that the current working directory is
#
the source tree root.
make -f elasticdl/Makefile
#
TODO(QiJune): How about we put the go.mod file in elasticdl/elasticdl/go/ in
#
the Git repo, so we don't need to create it at building time?
(
cp -r elasticdl/go/ /tmp/elasticdl
cd
"
$GOPATH
"
/pkg/mod/github.com/tensorflow
go mod init github.com/tensorflow
cd
/tmp/elasticdl
go mod init elasticdl.org/elasticdl
go mod edit -replace \
github.com/tensorflow=
"
${GOPATH}
"
/pkg/mod/github.com/tensorflow
go get -u -t k8s.io/client-go@v0.17.0
go mod tidy
GOBIN=/tmp go install ./...
)
#
Create elasticdl_preprocessing package
echo
"
Building the wheel for elasticdl_preprocessing.
"
rm -rf ./build/lib
python setup_preprocessing.py --quiet bdist_wheel --dist-dir ./build
#
Create elasticai_api package
echo
"
Building the wheel for elasticai_api.
"
rm -rf ./build/lib
python setup_api.py --quiet bdist_wheel --dist-dir ./build
#
Create elasticdl_client package
echo
"
Building the wheel for elasticdl_client.
"
rm -rf ./build/lib
python setup_client.py --quiet bdist_wheel --dist-dir ./build
#
Create elasticdl package
echo
"
Building the wheel for elasticdl.
"
mkdir -p ./elasticdl/go/bin
cp /tmp/elasticdl_ps ./elasticdl/go/bin/
rm -rf ./build/lib
python setup.py --quiet bdist_wheel --dist-dir ./build
Back
|
FazBrowse Home
|
New Git URL