mirror of
https://github.com/openwrt/packages.git
synced 2026-04-17 11:52:29 +00:00
Update package to 1.0.0. This is the first stable release. Changes since 0.7.0: - Dropped support for Python 3.7, 3.8, 3.9; added Python 3.13/3.14 - Added --overwrite-existing and --validate-record CLI options - Support installing multiple wheels in a single invocation - Security: fixed a path traversal bug - Do not install __pycache__ directories from wheels - Switch to stream-based validation instead of in-memory (lower memory) - Sort entries before writing RECORD; fixed Windows relative path bug - Complete type annotations with strict mypy enforcement - API change: SchemeDictionaryDestination.overwrite_existing now defaults to True (was False); update patch 001 accordingly Remove patch 001-don-t-raise-error-if-file-exists.patch and set '--overwrite-existing' in build scripts. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
26 lines
600 B
Bash
Executable File
26 lines
600 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ "$1" = python3-installer ] || exit 0
|
|
|
|
python3 - << 'EOF'
|
|
from installer import install
|
|
from installer.sources import WheelFile
|
|
from installer.destinations import SchemeDictionaryDestination
|
|
import tempfile
|
|
import os
|
|
|
|
# Verify the API is importable and overwrite_existing defaults to True
|
|
dest = SchemeDictionaryDestination(
|
|
scheme_dict={
|
|
"purelib": "/tmp",
|
|
"platlib": "/tmp",
|
|
"headers": "/tmp",
|
|
"scripts": "/tmp",
|
|
"data": "/tmp",
|
|
},
|
|
interpreter="/usr/bin/python3",
|
|
script_kind="posix",
|
|
)
|
|
assert dest.overwrite_existing is True
|
|
EOF
|