{"id":22914506,"url":"https://github.com/karellen/wheel-axle","last_synced_at":"2025-08-04T09:32:38.930Z","repository":{"id":44667906,"uuid":"452959270","full_name":"karellen/wheel-axle","owner":"karellen","description":"Wheel Axle - Python Wheel enhancement library","archived":false,"fork":false,"pushed_at":"2025-07-28T06:52:23.000Z","size":85,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-28T08:42:04.954Z","etag":null,"topics":["packaging","packaging-python","post-install","post-installation","python","setuptools","symlink","symlinks","wheel","wheels"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karellen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2022-01-28T06:12:28.000Z","updated_at":"2025-04-26T00:42:56.000Z","dependencies_parsed_at":"2024-02-09T07:25:25.963Z","dependency_job_id":"5700e998-cc17-4883-b13c-becb67c55d10","html_url":"https://github.com/karellen/wheel-axle","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"53e3334bd0572b1c8b8982e05a48e32eb4ea4efe"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/karellen/wheel-axle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karellen%2Fwheel-axle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karellen%2Fwheel-axle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karellen%2Fwheel-axle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karellen%2Fwheel-axle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karellen","download_url":"https://codeload.github.com/karellen/wheel-axle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karellen%2Fwheel-axle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268675515,"owners_count":24288285,"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-04T02:00:09.867Z","response_time":79,"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":["packaging","packaging-python","post-install","post-installation","python","setuptools","symlink","symlinks","wheel","wheels"],"created_at":"2024-12-14T05:15:29.517Z","updated_at":"2025-08-04T09:32:38.905Z","avatar_url":"https://github.com/karellen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wheel Axle - Python Wheel enhancement library\n\n[![Gitter](https://img.shields.io/gitter/room/karellen/Lobby?logo=gitter)](https://app.gitter.im/#/room/#karellen_Lobby:gitter.im)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/karellen/wheel-axle/build.yml?branch=master)](https://github.com/karellen/wheel-axle/actions/workflows/build.yml)\n[![Coverage Status](https://img.shields.io/coveralls/github/karellen/wheel-axle/master?logo=coveralls)](https://coveralls.io/r/karellen/wheel-axle?branch=master)\n\n[![Wheel Axle Version](https://img.shields.io/pypi/v/wheel-axle?logo=pypi)](https://pypi.org/project/wheel-axle/)\n[![Wheel Axle Python Versions](https://img.shields.io/pypi/pyversions/wheel-axle?logo=pypi)](https://pypi.org/project/wheel-axle/)\n\n[![Wheel Axle Downloads Per Day](https://img.shields.io/pypi/dd/wheel-axle?logo=pypi)](https://pypistats.org/packages/wheel-axle)\n[![Wheel Axle Downloads Per Week](https://img.shields.io/pypi/dw/wheel-axle?logo=pypi)](https://pypistats.org/packages/wheel-axle)\n[![Wheel Axle Downloads Per Month](https://img.shields.io/pypi/dm/wheel-axle?logo=pypi)](https://pypistats.org/packages/wheel-axle)\n\n## Problem\n\n1. Python wheel does not support symlinks.\n2. Python wheel does not support overwriting in a convenient way:\n    * whether the distribution is pure-Python\n    * distribution ABI tag\n    * extend Python tag override capability\n\n## Solution\n\n**WARNING: THIS IS EXPERIMENTAL BETA SOFTWARE. THERE ARE NO WARRANTIES OF ANY KIND. USE AT YOUR OWN RISK.\nADDITIONAL INCLUDED DISCLAIMERS ALSO APPLY.**\n\nWheel-Axle (`axle`, `bdist_axle`) is a drop-in replacement/augmentation utility for `wheel` (`bdist_wheel`)\nthat extends and builds spec-compliant wheels.\n\nDuring the build, `axle` is able to capture and record in the Python wheel the symlinks in the following\nschema paths (locations):\n\n* purelib\n* platlib\n* scripts\n* headers\n* data\n\nAdditionally, `Axle` is able to customize the Python wheel tags via additional command line options.\n\nWhile the generated Python wheel is fully spec-compliant, additional symlink functionality is not possible without its\ncompanion library [Wheel Axle Runtime](https://github.com/karellen/wheel-axle-runtime). Thus, every Python wheel\ngenerated by the `bdist_axle` automatically becomes dependent on `wheel-axle-runtime` that provides\npost-install logic required.\n\n## Implementation\n\nThe body of the library is as ugly and messy as `distutils`/`setuptools` are, and consists of, mainly, in\nhacking/overwriting various `setuptools` commands to detect, handle and record symlinks and their targets. Once that\nproblem is solved, the list of symlinks is recorded in the `.dist-info/symlinks.txt`\nin the following CSV format:\n\n1. symlink name\n2. symlink target\n3. a boolean (0 or 1) flag indicating whether the target is a directory\n\n**NOTE: Symlinks may be relative, absolute and/or broken. Symlink targets are recorded verbatim (even when broken) and\nare NOT otherwise interpreted. THIS IS INTENTIONAL. Please\nsee [Wheel Axle Runtime Security Notice](https://github.com/karellen/wheel-axle-runtime#security)\nfor additional information.**\n\nA special `\u003cdistribution name and version\u003e.pth` file is also added to the distribution. When the wheel is installed\nthis `.pth` file triggers the post-install logic via\n[wheel-axle-runtime](https://github.com/karellen/wheel-axle-runtime).\n\n## Usage\n\n`python setup.py bdist_wheel \u003carguments\u003e` can be replaced with `python setup.py bdist_axle \u003carguments\u003e`. The replacement\nis drop-in.\n\nAdditional functionality is available via the following options:\n\n```commandline\n  --python-tag        Python implementation compatibility tag (default: 'py3')\n  --root-is-pure      set to manually override whether the wheel is\n                      pure (default: None)\n  --abi-tag           set to override ABI tag (default: None)\n  --require-libpython set to indicate the package requires libpython in the\n                       exec_prefix/platlib\n```\n\nUsing `--python-tag`, `--root-is-pure` and `--abi-tag` allows you to create wheels that carry platform-dependent data\nwhile otherwise containing pure-Python libraries.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarellen%2Fwheel-axle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarellen%2Fwheel-axle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarellen%2Fwheel-axle/lists"}