Skip to main content

Buildout Extension to strip binaries

slapos.extension.strip is a buildout extension that finds shared libraries, binary executables and static libraries, and calls strip(1) against them to reduce the size. It is triggered at the end of the buildout process.

Usage

Add slapos.extension.strip in [buildout] section’s extensions option like :

[buildout]
extensions = slapos.extension.strip

Requirements

The following programs are required. If any of them is missing, this extension does nothing.

  • file

  • find

  • strip

Supported Options

file-binary

Path to file program. Defaults to ‘file’ which should work on any system that has the make program available in the system PATH.

find-binary

Path to find program. Defaults to ‘find’ which should work on any system that has the find program available in the system PATH.

strip-binary

Path to strip program. Defaults to ‘strip’ which should work on any system that has the strip program available in the system PATH.

do-not-strip-path

A new-line separated list of absolute paths of the files you do not want to strip. Do not refer a section to get its location. If you do like ${bazel:location}/bin/bazel, buildout will not work correctly. Instead do like ${buildout:parts-directory}/bazel/bin/bazel.

An example:

[buildout]
do-not-strip-path =
  ${buildout:parts-directory}/bazel/bin/bazel
  ${buildout:parts-directory}/anotherparts/bin/dontstripbinary

Changes

0.4 (2017-06-06)

  • Fix MANIFEST.in: some files were missing.

0.3 (2017-06-05)

  • Add support for Python 3

0.2 (2017-01-19)

  • Add do-not-strip-path option.

0.1 (2014-10-22)

  • Initial release.

Download

Metadata

Release files for slapos.extension.strip 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slapos.extension.strip 0.4
File Size Uploaded Provenance
slapos.extension.strip-0.4.tar.gz 3.5 kB Without provenance Details

Release files / slapos.extension.strip-0.4.tar.gz

Download URL slapos.extension.strip-0.4.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8400d24be3127700d2cfa9c0b6eab8121e9a14ce8cb507131d9e21a50d64ea2d
BLAKE2b-256 checksum
How to use checksums
7bc262791b1ffbce9f432bbae7c4c2387dea8ee0e776c093004d6b161b3adca5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for slapos.extension.strip 0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page