Skip to main content

Trampoline binary for conda — launches tools from isolated conda environments

Project description

conda-trampoline

Small Rust trampoline binary plus a stdlib-only Python helper used by conda-global to run globally installed CLI tools without activating a conda environment every time.

What it does

  • _cg_trampoline (installed on PATH as bin/_cg_trampoline or Scripts/_cg_trampoline.exe) reads a JSON config, adjusts PATH and optional environment variables, then execs the real executable.
  • Each exposed tool is typically a hardlink (or copy) to that single binary. The trampoline picks the config file from its own filename: config lives next to the links under a trampoline/ directory (see conda-global’s layout under ~/.conda/global/bin).

Config shape (simplified):

{
  "exe": "/path/to/real/binary",
  "path_diff": "relative/path/prefix/for/PATH",
  "env": {}
}

Python package

The conda_trampoline module has no third-party dependencies. It exposes TrampolineManager to copy the master binary into place, create per-tool configs, and manage hardlinks — used by conda-global, not usually by end users directly.

from pathlib import Path
from conda_trampoline import TrampolineManager

tm = TrampolineManager(Path("~/.conda/global/bin").expanduser())
# deploy/remove are normally driven by conda global …

Install

Most people install conda-global, which pulls in conda-trampoline as a dependency. You can also install this package alone from PyPI if you are building tooling on top of the same trampoline layout.

License

BSD-3-Clause (same as conda-global).

Design is inspired by pixi’s trampoline idea; this is a clean-room implementation with no shared code.

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

conda_trampoline-0.2.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

conda_trampoline-0.2.0-py3-none-win_amd64.whl (154.2 kB view details)

Uploaded Python 3Windows x86-64

conda_trampoline-0.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (229.6 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

conda_trampoline-0.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (224.0 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

conda_trampoline-0.2.0-py3-none-macosx_11_0_arm64.whl (205.8 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

conda_trampoline-0.2.0-py3-none-macosx_10_12_x86_64.whl (215.2 kB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file conda_trampoline-0.2.0.tar.gz.

File metadata

  • Download URL: conda_trampoline-0.2.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for conda_trampoline-0.2.0.tar.gz
Algorithm Hash digest
SHA256 770ae5deb744cf20f39427c5b9a5f0c6e0fe770a1cb754be98d146a875f41803
MD5 1e01185e24a00d1f6c9565fe13466fc4
BLAKE2b-256 07a365ce32cd7fc6e4ee6d02f06e4ec27a5cb11475f02e2f166e5f621b5d2ba1

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_trampoline-0.2.0.tar.gz:

Publisher: release.yml on conda-incubator/conda-global

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file conda_trampoline-0.2.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for conda_trampoline-0.2.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 33beb7aa922504d26715bd71d13c63f7cf044cb486b102316ea3da570390c408
MD5 d21803fa2479254465b7d4e0cf4b97fd
BLAKE2b-256 584dca00126930b7d497c425bd27bc73b69d49ef694523974fb81f0a9bdd7628

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_trampoline-0.2.0-py3-none-win_amd64.whl:

Publisher: release.yml on conda-incubator/conda-global

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file conda_trampoline-0.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for conda_trampoline-0.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 013e46b11b8ea57242b655f7dbbf07524079e8ec32ed74347ea8dfe10964cfdc
MD5 72342bd87943bdfec942d86a913fbc58
BLAKE2b-256 e31e285f8aa4e9ecd81e5ac90b9c0e4384db08ae42c9b1b3b4e38c12b88dc0e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_trampoline-0.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on conda-incubator/conda-global

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file conda_trampoline-0.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for conda_trampoline-0.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 115e9b854960f01ab8b201eef44f639dc9dae7636423de5cc69b2567a50114fd
MD5 4a2a0cee448c9ecf3325a7a912bb2330
BLAKE2b-256 413c8ac74bccd9c81c23c9bc5493cf0e3d2ccdc8d83c86887510b7e1a8787ec8

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_trampoline-0.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on conda-incubator/conda-global

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file conda_trampoline-0.2.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for conda_trampoline-0.2.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab70be80d76d438338e20108746ef03a522d2d24b28916f548b4f98cf967294a
MD5 9b3aaeb38db6a7e7fcc5063bda38e5b9
BLAKE2b-256 192f99ec30d3a4fbda791a26b22e968df46e563a73ebaee7d0b068c475c54e1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_trampoline-0.2.0-py3-none-macosx_11_0_arm64.whl:

Publisher: release.yml on conda-incubator/conda-global

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file conda_trampoline-0.2.0-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for conda_trampoline-0.2.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6205207c2ff9b0aa051eb98450aab1e452d362f4c62d9ee53f3b1dde044dc773
MD5 9a3360c96719802c1230529da5122323
BLAKE2b-256 61cfbcfd0ef72e6a6845348338faad4c5b88aa68be234daabbe527d361327678

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_trampoline-0.2.0-py3-none-macosx_10_12_x86_64.whl:

Publisher: release.yml on conda-incubator/conda-global

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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