You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: python/generate/main.go
+20-7
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
package main
2
2
3
3
import (
4
+
"flag"
4
5
"fmt"
5
6
"github.com/gobwas/glob"
6
7
"github.com/klauspost/compress/zstd"
@@ -11,14 +12,15 @@ import (
11
12
"net/http"
12
13
"os"
13
14
"path/filepath"
15
+
"strings"
14
16
"sync"
15
17
)
16
18
17
-
// versions taken from https://github.com/indygreg/python-build-standalone/releases/
18
-
const (
19
-
pythonVersionBase="3.10"
20
-
pythonVersionFull="3.10.9"
21
-
pythonStandaloneVersion="20230116"
19
+
var (
20
+
pythonStandaloneVersion=flag.String("python-standalone-version", "", "specify the python-standalone version. Check https://github.com/indygreg/python-build-standalone/releases/ for available options.")
21
+
pythonVersion=flag.String("python-version", "", "specify the python version.")
22
+
23
+
pythonVersionBasestring
22
24
)
23
25
24
26
vararchMapping=map[string]string{
@@ -57,6 +59,17 @@ var keepWinPatterns = []glob.Glob{
Copy file name to clipboardexpand all lines: python/internal/data/dummy.go
-4
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,3 @@ package data
4
4
// This file is really just a dummy. The release process will remove this file and generate some read embedded files
5
5
// and commit these into a temporary branch and then tag it. This is to avoid clogging up the main branch with too many
6
6
// binary files, which would be a very bad experience when pulling in go-embed-python as a dependency.
7
-
8
-
funcinit() {
9
-
panic("You can not use the main branch of go-embed-python as a Go dependency, as this branch does not contain the necessary Python distributions. Please use a tagged release of go-embed-python instead.")
0 commit comments