A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bluss/sysconfigpatcher below:

bluss/sysconfigpatcher: Patch sysconfigdata and pkgconfig files in a python installation from indygreg's python builds.

The Python builds from https://github.com/indygreg/python-build-standalone come with some build-time variables hardcoded into sysconfig, and this is not portable - they should point to where the install is actually physically located.

This script can patch:

The script seems to work on these (more information needed):

Several more files contain system specific variables that might need to be updated, but that's not implemented yet.

It's essentially an impossible task to patch everything - because the variables record all the configurations of a python build, to reproduce that we need to recreate a build environment.

In general, it can only patch once. It's not intended to be used to update the location repeatedly of an install directory.

This program should not be run as superuser.

Use Uv:

uv tool install 'git+https://github.com/bluss/sysconfigpatcher'

Or use other equivalent python tool to install sysconfigpatcher from git.

sysconfigpatcher path/to/python/install

For example it could be:

sysconfigpatcher ~/.local/share/uv/python/cpython-3.12.5-macos-aarch64-none
# or
sysconfigpatcher ~/.local/share/uv/python/cpython-3.12.5-macos-aarch64-none/bin/python3
uv sync

# after you've added some tests you can run this:
uv run pytest

# you can test update the mock install inside tests

uv run sysconfigpatcher -v ./tests/installs/cpython@3.12.2/

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4