@bjia56/portable-python 0.1.91 → 0.1.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -12
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -8,7 +8,6 @@ This project provides self-contained (hence, "portable") Python distributions to
|
|
|
8
8
|
## Usage
|
|
9
9
|
|
|
10
10
|
To get started, download archives from [GitHub releases](https://github.com/bjia56/portable-python/releases). Alternatively, use any of the following installers:
|
|
11
|
-
- `npm i @bjia56/portable-python-3.8`
|
|
12
11
|
- `npm i @bjia56/portable-python-3.9`
|
|
13
12
|
- `npm i @bjia56/portable-python-3.10`
|
|
14
13
|
- `npm i @bjia56/portable-python-3.11`
|
|
@@ -16,36 +15,39 @@ To get started, download archives from [GitHub releases](https://github.com/bjia
|
|
|
16
15
|
|
|
17
16
|
For example, on Linux via bash:
|
|
18
17
|
```
|
|
19
|
-
$ wget -q https://github.com/bjia56/portable-python/releases/download/v3.
|
|
20
|
-
.
|
|
21
|
-
$
|
|
22
|
-
|
|
23
|
-
Python 3.9.17
|
|
18
|
+
$ wget -q https://github.com/bjia56/portable-python/releases/download/cpython-v3.12.6-build.5/python-headless-3.12.6-linux-x86_64.zip
|
|
19
|
+
$ unzip -qq python-headless-3.12.6-linux-x86_64.zip
|
|
20
|
+
$ ./python-headless-3.12.6-linux-x86_64/bin/python --version
|
|
21
|
+
Python 3.12.6
|
|
24
22
|
```
|
|
25
23
|
|
|
26
24
|
Or via the node installer:
|
|
27
25
|
```
|
|
28
|
-
$ npm i --silent @bjia56/portable-python-3.
|
|
29
|
-
$ ./node_modules/@bjia56/portable-python-3.
|
|
30
|
-
Python 3.
|
|
26
|
+
$ npm i --silent @bjia56/portable-python-3.12
|
|
27
|
+
$ ./node_modules/@bjia56/portable-python-3.12/python-headless-3.12.6-linux-x86_64/bin/python --version
|
|
28
|
+
Python 3.12.6
|
|
31
29
|
```
|
|
32
30
|
|
|
33
31
|
Or via node:
|
|
34
32
|
```js
|
|
35
|
-
var pythonExe = require("@bjia56/portable-python-3.
|
|
33
|
+
var pythonExe = require("@bjia56/portable-python-3.12");
|
|
36
34
|
var child_process = require("child_process");
|
|
37
35
|
console.log(child_process.execSync(`${pythonExe} --version`).toString());
|
|
38
36
|
```
|
|
39
37
|
|
|
40
38
|
## Available distributions
|
|
41
39
|
|
|
42
|
-
Currently,
|
|
43
|
-
- Linux x86_64, i386, aarch64, arm <sup id="a1">[1](#f1)</sup>, riscv64
|
|
40
|
+
Currently, CPython 3.9, 3.10, 3.11, and 3.12 are built for the following targets:
|
|
41
|
+
- Linux x86_64, i386, aarch64, arm <sup id="a1">[1](#f1)</sup>, riscv64 (glibc)
|
|
44
42
|
- Windows x86_64
|
|
45
43
|
- MacOS x86_64, arm64 <sup id="a2">[2](#f2)</sup>
|
|
46
44
|
- FreeBSD 13, 14 x86_64
|
|
47
45
|
- Cosmopolitan libc <sup id="a3">[3](#f3)</sup>
|
|
48
46
|
|
|
47
|
+
For all CPython distributions except for the Cosmopolitan libc build, there are two available variants: `full` and `headless`. The distinction is that `headless` builds do not include any UI libraries (i.e. `tkinter` and its dependencies), so are better suited for non-graphical server installations.
|
|
48
|
+
|
|
49
|
+
PyPy and GraalPy distributions are also available as repackaged versions of official upstream releases. Though they are already portable, the distributions have been made available through the node installers for convenience and flexibility.
|
|
50
|
+
|
|
49
51
|
<sub><b id="f1">1</b> The arm builds target armv6, specifically the configuration of the Raspberry Pi 1. Current arm builds do not work properly on old glibc, but a recent version of Raspbian like Debian bullseye should provide a new enough glibc to work. [↩](#a1)</sub>
|
|
50
52
|
|
|
51
53
|
<sub><b id="f2">2</b> MacOS distributions are provided as universal2, which will work on both x86_64 and arm64. [↩](#a2)</sub>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bjia56/portable-python",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.93",
|
|
4
4
|
"description": "Portable Python",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -79,20 +79,24 @@
|
|
|
79
79
|
},
|
|
80
80
|
"graalpy": {
|
|
81
81
|
"versions": [
|
|
82
|
+
"24.1.1",
|
|
82
83
|
"24.1.0",
|
|
83
84
|
"24.0.2"
|
|
84
85
|
],
|
|
85
86
|
"versionBuilds": {
|
|
86
87
|
"24.0.2": "graalpy-v24.0.2-build.0",
|
|
87
|
-
"24.1.0": "graalpy-v24.1.0-build.0"
|
|
88
|
+
"24.1.0": "graalpy-v24.1.0-build.0",
|
|
89
|
+
"24.1.1": "graalpy-v24.1.1-build.0"
|
|
88
90
|
}
|
|
89
91
|
},
|
|
90
92
|
"pypy": {
|
|
91
93
|
"versions": [
|
|
94
|
+
"7.3.17",
|
|
92
95
|
"7.3.16"
|
|
93
96
|
],
|
|
94
97
|
"versionBuilds": {
|
|
95
|
-
"7.3.16": "pypy-v7.3.16-build.0"
|
|
98
|
+
"7.3.16": "pypy-v7.3.16-build.0",
|
|
99
|
+
"7.3.17": "pypy-v7.3.17-build.0"
|
|
96
100
|
}
|
|
97
101
|
}
|
|
98
102
|
}
|