File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ const (
47
47
48
48
// URL for downloading MNIST dataset
49
49
mnistDatasetURL = "MNIST_DATASET_URL"
50
+
51
+ // URL for PiPI index containing all the required test Python packages
52
+ pipIndexURL = "PIP_INDEX_URL"
53
+ pipTrustedHost = "PIP_TRUSTED_HOST"
50
54
)
51
55
52
56
type ClusterType string
@@ -117,6 +121,14 @@ func GetMnistDatasetURL() string {
117
121
return lookupEnvOrDefault (mnistDatasetURL , "http://yann.lecun.com/exdb/mnist/" )
118
122
}
119
123
124
+ func GetPipIndexURL () string {
125
+ return lookupEnvOrDefault (pipIndexURL , "https://pypi.python.org/simple" )
126
+ }
127
+
128
+ func GetPipTrustedHost () string {
129
+ return lookupEnvOrDefault (pipTrustedHost , "" )
130
+ }
131
+
120
132
func lookupEnvOrDefault (key , value string ) string {
121
133
if v , ok := os .LookupEnv (key ); ok {
122
134
return v
You can’t perform that action at this time.
0 commit comments