run-by-arch: Run different shell commands depending on your OS or CPU arch
run-by-arch helps you organize and run programs compiled for varying operating systems and CPU target architectures.
Installation
run-by-arch is a Python program that works with both Python 2 and 3. You can install it with pip install run-by-arch.
run-by-arch does not depend on any other Python packages, so it is safe to install it into your system Python.
Why do I need run-by-arch?
For example, if you are working on a program called my-program with binaries stored on a Network File System instance shared between 64-bit Linux and MacOS users, then users of both operating systems can run run-by-arch my-program followed by the arguments for that program.
For a Linux user, run-by-arch will run the binary found at the directory ./run-by-arch/linux-x86_64/my-program.
For a MacOS user, run-by-arch will run the binary found at ./run-by-arch/darwin-x86_64/my-program.
If you set the environment variable RUN_BY_ARCH_PREFIX, you can tell run-by-arch to look anywhere else on your filesystem.
run-by-arch expects the path at RUN_BY_ARCH_PREFIX to have subdirectories named after the operating system hyphenated with the CPU architecture. If you set RUN_BY_ARCH_PREFIX=/prefix, then your binaries should be located at:
/prefix/darwin-x86_64/ for 64-bit MacOS computers with Intel CPUs (not the Apple M1)
/prefix/linux-x86_64/ for 64-bit Linux computers
/prefix/windows-x86_64/ for 64-bit Windows computers
/prefix/linux-i386/ for 32-bit Linux computers
…and so on…
Metadata
Release files for run-by-arch 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| run-by-arch-0.0.1.tar.gz | 3.4 kB | Without provenance | Details for run-by-arch-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| run_by_arch-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for run_by_arch-0.0.1-py3-none-any.whl |
Total release size: 7.6 kB
Release files / run-by-arch-0.0.1.tar.gz
| Download URL | run-by-arch-0.0.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75ec4fec0b5db27bcbf417bbd8645cc452301229014b604d4283b89a41c1fe2c
|
|
BLAKE2b-256 checksum How to use checksums |
bc710a5f6a0b5aec885c2ccf0d36cb6028dcbacde790a9dd056922128091e5c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
|
Release files / run_by_arch-0.0.1-py3-none-any.whl
| Download URL | run_by_arch-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd4b7fed4bca0ab90f260b7e74994bdeab203f76a6e1c2a1222fc32f8e635f1c
|
|
BLAKE2b-256 checksum How to use checksums |
4cbcdee371c0181af2c8b5b36d02a779d107ae037d33a9e4dead90685913af3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
|
Security for run-by-arch 0.0.1
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.