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 Distribution

reduce_binary-4.14.post3.tar.gz (13.8 kB view details)

Uploaded Source

Built Distributions

reduce_binary-4.14.post3-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.post3-py3-none-macosx_14_0_arm64.whl (13.6 MB view details)

Uploaded Python 3 macOS 14.0+ ARM64

reduce_binary-4.14.post3-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.post3.tar.gz.

File metadata

  • Download URL: reduce_binary-4.14.post3.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for reduce_binary-4.14.post3.tar.gz
Algorithm Hash digest
SHA256 3d85e7f3c35ac5443043f585237a7ab3e7f2c96071458acdc0d0393830281aa2
MD5 75a502b053015b183db95e2953f405d0
BLAKE2b-256 e5dc74b12b7426ba2eac5a984bbae8f5947a5988e65146aec679e6fee5311cde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for reduce_binary-4.14.post3-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 15508bee87a30b81da6a155493eba9ec0aea4855f975266b58db336a6c5b71a7
MD5 ec5bd14466ffd04d6c117427519d8065
BLAKE2b-256 e25ed99e2b4edf24d479b498a7053d8ea92ad0867de853e1e5b274d7126323c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for reduce_binary-4.14.post3-py3-none-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 72515dd98b311acf6147698c3bc86ae478ef2afdbedbf74da703f891b5c4277e
MD5 4d5573b1e65d653d73c7695124f54013
BLAKE2b-256 cc182bee39c4c011c41d7e4529e595a2e9e80ac7d74f42c9db49e63fb1ae4cc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for reduce_binary-4.14.post3-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 3a36fd2de8d716ad69e0e7f9be596c51c434ac4250d081eea3d2b9b33710702d
MD5 a92a57853e01f55e7f6f13e5bc4ba47c
BLAKE2b-256 3813301244371d012e6dfb89e4350baaff77681909ac13bf62e00a6249be9b21

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