@bjia56/portable-python 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +51 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # portable-python
2
+ This project provides self-contained (hence, "portable") Python distributions to a variety of target platforms and architectures. These Python distributions can be downloaded and extracted to anywhere on the filesystem, making installation trivially easy and configurable.
3
+
4
+ ## Usage
5
+
6
+ To get started, download archives from [GitHub releases](https://github.com/bjia56/portable-python/releases). Alternatively, use any of the following installers:
7
+ - `npm i @bjia56/portable-python-3.8`
8
+ - `npm i @bjia56/portable-python-3.9`
9
+ - `npm i @bjia56/portable-python-3.10`
10
+
11
+ For example, on Linux via bash:
12
+ ```
13
+ $ wget -q https://github.com/bjia56/portable-python/releases/download/v3.9.17-build.4/python-3.9
14
+ .17-linux-x86_64.zip
15
+ $ unzip -qq python-3.9.17-linux-x86_64.zip
16
+ $ ./python-3.9.17-linux-x86_64/bin/python --version
17
+ Python 3.9.17
18
+ ```
19
+
20
+ Or via the node installer:
21
+ ```
22
+ $ npm i --silent @bjia56/portable-python-3.9
23
+ $ ./node_modules/@bjia56/portable-python-3.9/python-3.9.17-linux-x86_64/bin/python --version
24
+ Python 3.9.17
25
+ ```
26
+
27
+ Or via node:
28
+ ```js
29
+ var pythonExe = require("@bjia56/portable-python-3.9");
30
+ var child_process = require("child_process");
31
+ console.log(child_process.execSync(`${pythonExe} --version`).toString());
32
+ ```
33
+
34
+ ## Available distributions
35
+
36
+ Currently, Python 3.9, and 3.10 are built for the following targets:
37
+ - Linux x86_64, i386, aarch64, arm <sup id="a1">[1](#f1)</sup>, riscv64
38
+ - Windows x86_64
39
+ - MacOS x86_64, arm64 <sup id="a2">[2](#f2)</sup>
40
+
41
+ Python 3.8 builds are available, but will no longer be actively updated.
42
+
43
+ <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>
44
+
45
+ <sub><b id="f2">2</b> MacOS distributions are provided as universal2, which will work on both x86_64 and arm64. [↩](#a2)</sub>
46
+
47
+ Download stats: <a href="https://bjia56.github.io/portable-python/">📊</a>
48
+
49
+ ## Licensing
50
+
51
+ The build scripts and code in this repository are available under the Apache-2.0 License. Note that compilation of Python involves linking against other libraries, some of which may include different licensing terms. Copies of the licenses from known dependencies are included under the `licenses` directory of each Python distribution.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bjia56/portable-python",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Portable Python",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -9,7 +9,7 @@
9
9
  "dist"
10
10
  ],
11
11
  "scripts": {
12
- "build": "tsup",
12
+ "build": "cp ../../README.md . && tsup",
13
13
  "prepublishOnly": "npm run build",
14
14
  "test": "echo \"Error: no test specified\" && exit 1"
15
15
  },