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 at buiid/ (reduce):

# Linux
bash build_reduce.sh v4.14
# Mac (Intel)
MACOSX_DEPLOYMENT_TARGET=10.12 bash build_reduce.sh v4.14
# Mac (Apple Silicon)
MACOSX_DEPLOYMENT_TARGET=11.0 bash build_reduce.sh v4.14

The MACOSX_DEPLOYMENT_TARGET is the cmake flag.
https://cmake.org/cmake/help/latest/envvar/MACOSX_DEPLOYMENT_TARGET.html

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.post5-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.post5-py3-none-macosx_11_0_arm64.whl (13.6 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

reduce_binary-4.14.post5-py3-none-macosx_10_12_x86_64.whl (13.6 MB view details)

Uploaded Python 3 macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for reduce_binary-4.14.post5-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 29f7de22ab1c7947e89bb47650ee73a385e65e1b191846cf54cf2bab76a4cab0
MD5 9e9307ed62122d8abde71c97d41ebbbd
BLAKE2b-256 5c405df6c20833ec41066a4416c76ca7e283604f01d2275300101d3255a655a9

See more details on using hashes here.

File details

Details for the file reduce_binary-4.14.post5-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for reduce_binary-4.14.post5-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70229dd2135cfc6d97de7538e51084d99cfc002f74f1c8bb2f6bb30168803fea
MD5 7b60bffbb35edd6ce422a3a69a904053
BLAKE2b-256 50adb0e0a7985359accddb8a70fde9cc74d3f8bc7dbf2d33186e29e053a8b870

See more details on using hashes here.

File details

Details for the file reduce_binary-4.14.post5-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for reduce_binary-4.14.post5-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d5df071858f6105bbc2f924e03376f5c6a30dba967163a88b5846c255575a74e
MD5 2effdb67a2578ba54c37f30d35ddcf32
BLAKE2b-256 741eaf7c65f900481d8a92f4c70f2f67df70419939b879aeb4426520ec43c757

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