Skip to main content

Install reduce with pip

Project description

pip install reduce-binary

build

image PyPI - Downloads image image

Install and use reduce with ease in Python.

pip install reduce-binary
from reduce_binary import REDUCE_BIN_PATH, reduce
print(REDUCE_BIN_PATH)
reduce("-h")

Supported platforms:

  • Linux x86_64 (Ubuntu 20.04 +)
  • MacOS x86_64, arm64 (Intel and Apple Silicon)

👨‍💻️ Maintenance Notes

Releasing a new version with CI (recommended)

Go to Github Actions and run the Build and Release workflow.

Version rule:

4.14.post2: 4.14 is the reduce version, postN can increase with the changes of the package and the builds.

Running locally

This section describes how it works.

To run it locally, first install the dependencies:

pip install uv
uv tool install wheel
uv tool install build

# Mac
brew install gnu-sed

Build the app (reduce):

# build/
bash build_reduce.sh v4.14

Build the wheel. It copies the python to build_python/, built binary into it, modifies the version number and builds the wheel in build_python/dist/.:

# One of the following
bash build_python.sh wheel 4.14 manylinux_2_28_x86_64.manylinux2014_x86_64
bash build_python.sh wheel 4.14 macosx_10_12_x86_64
bash build_python.sh wheel 4.14 macosx_11_0_arm64
bash build_python.sh sdist 4.14

Test the wheel

uv venv
source .venv/bin/activate
uv pip install -r requirements_test.txt
uv pip install build_python/dist/*.whl
pytest

✅ TODO

  • Cross-compile for Linux
  • Windows build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

reduce_binary-4.14.post4-py3-none-manylinux_2_28_x86_64.whl (13.6 MB view details)

Uploaded Python 3 manylinux: glibc 2.28+ x86-64

reduce_binary-4.14.post4-py3-none-macosx_14_0_arm64.whl (13.6 MB view details)

Uploaded Python 3 macOS 14.0+ ARM64

reduce_binary-4.14.post4-py3-none-macosx_12_0_x86_64.whl (13.6 MB view details)

Uploaded Python 3 macOS 12.0+ x86-64

File details

Details for the file reduce_binary-4.14.post4-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for reduce_binary-4.14.post4-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 055cfff7776fd8bfb0fd25269981198ebe8659cde5441daf8ed9fb3b328545d6
MD5 6411e056ea14937fb91f675c5ea86325
BLAKE2b-256 208c850d215e904d95604f95261d366d5e8fb743de3d84e8891fd2ba9dd88b87

See more details on using hashes here.

File details

Details for the file reduce_binary-4.14.post4-py3-none-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for reduce_binary-4.14.post4-py3-none-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e7e410c93803fd3b580fad6e5c0e99bd5e63c6faeb91493edfd0e63c354c10c5
MD5 93524bcbea7fdb2251816393bb46b76e
BLAKE2b-256 90c78b9637eb1f2dd56fa582cdee35bdd4af0b3b4606b12a3c48d7f909dbb6f8

See more details on using hashes here.

File details

Details for the file reduce_binary-4.14.post4-py3-none-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for reduce_binary-4.14.post4-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 b1d4a7400d244cb13b0ad17cb752df8e7ace3cce85f0169c8961e54b673cbcf4
MD5 7c7b42ba4d091761f4c161fbd9fda655
BLAKE2b-256 b499734ccd16af295e33e8fa5b7319d69332a95852edce3c95c572835f6bc8f0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page