{"id":15467803,"url":"https://github.com/bluss/sysconfigpatcher","last_synced_at":"2025-08-11T17:32:36.032Z","repository":{"id":231585529,"uuid":"782140332","full_name":"bluss/sysconfigpatcher","owner":"bluss","description":"Patch sysconfigdata and pkgconfig files in a python installation from indygreg's python builds.","archived":false,"fork":false,"pushed_at":"2024-09-30T21:30:32.000Z","size":43,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-09T00:39:07.110Z","etag":null,"topics":["python","rye"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluss.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-04T18:01:08.000Z","updated_at":"2025-05-06T20:37:51.000Z","dependencies_parsed_at":"2024-04-04T19:25:10.441Z","dependency_job_id":"4353f39f-46d7-41fc-9c8e-b95699fa6a8e","html_url":"https://github.com/bluss/sysconfigpatcher","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"c1ebf8ab9274dcde255484d93ce0f1fd1f76a248"},"previous_names":["bluss/sysconfigpatcher"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/bluss/sysconfigpatcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluss%2Fsysconfigpatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluss%2Fsysconfigpatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluss%2Fsysconfigpatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluss%2Fsysconfigpatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluss","download_url":"https://codeload.github.com/bluss/sysconfigpatcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluss%2Fsysconfigpatcher/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269928190,"owners_count":24498384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","rye"],"created_at":"2024-10-02T01:27:06.520Z","updated_at":"2025-08-11T17:32:35.962Z","avatar_url":"https://github.com/bluss.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sysconfigpatcher\n\nThe Python builds from https://github.com/indygreg/python-build-standalone\ncome with some build-time variables hardcoded into sysconfig, and this is\nnot portable - they should point to where the install is actually physically located.\n\nThis script can patch:\n\n- sysconfigdata\n- pkgconfig files\n\nThe script seems to work on these (more information needed):\n\n- linux\n- macos\n\nSeveral more files contain system specific variables that might need to be updated,\nbut that's not implemented yet.\n\nIt's essentially an impossible task to patch everything - because the variables\nrecord all the configurations of a python build, to reproduce that we need to recreate\na build environment.\n\nIn general, it can only patch once. It's not intended to be used\nto update the location repeatedly of an install directory.\n\nThis program should not be run as superuser.\n\n## How to Install\n\nUse Uv:\n\n```bash\nuv tool install 'git+https://github.com/bluss/sysconfigpatcher'\n```\n\nOr use other equivalent python tool to install sysconfigpatcher from git.\n\n\n## How to use\n\n```bash\nsysconfigpatcher path/to/python/install\n```\n\nFor example it could be:\n\n```bash\nsysconfigpatcher ~/.local/share/uv/python/cpython-3.12.5-macos-aarch64-none\n# or\nsysconfigpatcher ~/.local/share/uv/python/cpython-3.12.5-macos-aarch64-none/bin/python3\n```\n\n## How to develop\n\n```\nuv sync\n\n# after you've added some tests you can run this:\nuv run pytest\n\n# you can test update the mock install inside tests\n\nuv run sysconfigpatcher -v ./tests/installs/cpython@3.12.2/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluss%2Fsysconfigpatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluss%2Fsysconfigpatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluss%2Fsysconfigpatcher/lists"}