https://github.com/conda/conda-standalone

A standalone conda executable built with PyInstaller.

https://github.com/conda/conda-standalone

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.3%) to scientific vocabulary

Keywords from Contributors

conda docs package-management mesh archiving distributed parallel transformers gtk qt
Last synced: 11 months ago · JSON representation

Repository

A standalone conda executable built with PyInstaller.

Basic Info
  • Host: GitHub
  • Owner: conda
  • License: bsd-3-clause
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 305 KB
Statistics
  • Stars: 4
  • Watchers: 10
  • Forks: 9
  • Open Issues: 12
  • Releases: 17
Created almost 4 years ago · Last pushed 11 months ago
Metadata Files
Readme Changelog License Code of conduct Codeowners Authors

README.md

conda-standalone

A standalone conda executable built with PyInstaller.

What is this for?

conda-standalone is a self-contained conda installation produced with PyInstaller.

[!WARNING] This product is not intended for end-users! Its main purpose is to assist constructor install the bundled conda packages.

Main features:

  • Single-file binary, named conda.exe, that can be mostly used as the regular conda command.
  • No installation required, but there are some differences (see below).
  • New subcommands (see below).

Installation

You can install conda-standalone like any other conda package. Note the binary will be only available under $PREFIX/standalone_conda/conda.exe, which is not in PATH.

bash $ conda create -n conda-standalone conda-standalone $ conda activate conda-standalone $ "$CONDA_PREFIX/standalone_conda/conda.exe" --help

You can also download the packages directly from anaconda.org and extract them manually:

[!NOTE] Use conda-package-handling's cph x command to extract .conda archives if needed.

Main differences

  • Slow startup. The binary needs to self extract into a temporary location and then run conda from there. On Windows, antivirus might delay everything even longer while the contents are analyzed.
  • No shell integration. It cannot activate or deactivate environments. You can use conda.exe run, though.
  • No implicit base environment. Always operate on an existing or new environment with --prefix / -p.
  • And maybe more. Please submit an issue if you find something that could be improved!

It also adds new subcommands not available on the regular conda:

conda.exe constructor

This subcommand is mainly used by the installers generated with constructor.

```bash usage: conda.exe constructor [-h] [--prefix PREFIX] [--num-processors N] [--extract-conda-pkgs | --extract-tarball | --make-menus [PKG_NAME ...] | --rm-menus] {uninstall} ...

constructor helper subcommand

positional arguments: {uninstall}

options: -h, --help show this help message and exit --prefix PREFIX path to the conda environment to operate on --num-processors N Number of processors to use with --extract-conda-pkgs. Value must be int between 0 (auto) and the number of processors. Defaults to 3. --extract-conda-pkgs extract conda packages found in prefix/pkgs --extract-tarball extract tarball from stdin --make-menus [PKG_NAME ...] create menu items for the given packages; if none are given, create menu items for all packages in the environment specified by --prefix --rm-menus remove menu items for all packages in the environment specified by --prefix ```

conda.exe constructor uninstall

This subcommand can be used to uninstall a base environment and all sub-environments, including entire Miniconda/Miniforge installations. It is also possible to remove environments directories created by conda create. This feature is useful if envs_dirs is set inside .condarc file.

There are several options to remove configuration and cache files:

bash $ conda.exe constructor uninstall [-h] --prefix PREFIX [--conda-clean] [--remove-config-files {user,system,all}] [--remove-conda-caches]

  • --prefix (required): Path to the conda directory to uninstall.
  • --remove-caches: Removes the notices cache and runs conda --clean --all to clean package caches outside the installation directory. This is especially useful when pkgs_dirs is set in a .condarc file. Not recommended with multiple conda installations when softlinks are enabled.
  • --remove-config-files {user,system,all}: Removes all .condarc files. user removes the files inside the current user's home directory and system removes all files outside of that directory. Not recommended when multiple conda installations are on the system or when running on an environments directory.
  • --remove-user-data: Removes the ~/.conda directory. Not recommended when multiple conda installations are installed on the system or when running on an environments directory.

[!IMPORTANT] Use sudo -E if removing system-level configuration files requires superuser privileges. conda relies on environment variables like HOME and XDG_CONFIG_HOME when detecting configuration files, which may be overwritten with just sudo. This can cause files to be left behind.

[!WARNING] Support for softlinks is still untested. The uninstaller will only perform unlink operations and not delete any files the links point to.

conda.exe python

This subcommand provides access to the Python interpreter bundled in the conda-standalone binary. It tries to emulate the same python CLI, but in practice it's just a convenience subset. The following options are supported:

bash $ conda.exe python --help Usage: conda.exe python [-V] [-c cmd | -m mod | file] [arg] ...

  • -c <script>: Execute the Python code in <script>. You can also pipe things via stdin; e.g echo 'print("Hello World")' | conda.exe python.
  • -m <module>: Search sys.path for the named Python module and execute its contents as the __main__ module.
  • <file>: Execute the Python code contained in <file>.
  • -V, --version: Print the Python version number and exit.
  • No options: Enter interactive mode. Very useful for debugging. You can import all the packages bundled in the binary.

Build status

| Build status pre-commit.ci status | Anaconda-Server Badge | | --- | :-: | | conda install defaults::conda-standalone | Anaconda-Server Badge | | conda install conda-forge::conda-standalone | Anaconda-Server Badge | | conda install conda-canary/label/dev::conda-standalone | Anaconda-Server Badge |

Owner

  • Name: conda
  • Login: conda
  • Kind: organization

conda is system-level, binary package and environment manager running on all major operating systems and platforms.

GitHub Events

Total
  • Create event: 21
  • Issues event: 7
  • Release event: 5
  • Watch event: 3
  • Delete event: 17
  • Issue comment event: 29
  • Push event: 57
  • Pull request review comment event: 77
  • Pull request event: 94
  • Pull request review event: 124
  • Fork event: 2
Last Year
  • Create event: 21
  • Issues event: 7
  • Release event: 5
  • Watch event: 3
  • Delete event: 17
  • Issue comment event: 29
  • Push event: 57
  • Pull request review comment event: 77
  • Pull request event: 94
  • Pull request review event: 124
  • Fork event: 2

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 165
  • Total Committers: 17
  • Avg Commits per committer: 9.706
  • Development Distribution Score (DDS): 0.752
Past Year
  • Commits: 57
  • Committers: 7
  • Avg Commits per committer: 8.143
  • Development Distribution Score (DDS): 0.737
Top Committers
Name Email Commits
Jaime Rodríguez-Guerra j****p 41
conda-bot 1****t 31
pre-commit-ci[bot] 6****] 26
Marco Esters m****s@a****m 15
Eric Prestat e****t@g****m 12
dependabot[bot] 4****] 11
Nehal J Wani n****1@g****m 7
regro-cf-autotick-bot c****i@c****m 4
Matthew R. Becker b****r 4
Hadrien Mary h****m 3
Isuru Fernando i****f@g****m 3
Jaida Rice j****e@g****m 2
conda-forge-admin p****e@g****m 2
Daniel Bast 2****t 1
Jonathan J. Helmus j****s@g****m 1
Mike Sarahan m****n@g****m 1
SC426 1****6 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 13
  • Total pull requests: 103
  • Average time to close issues: 6 months
  • Average time to close pull requests: 5 days
  • Total issue authors: 7
  • Total pull request authors: 7
  • Average comments per issue: 1.15
  • Average comments per pull request: 0.07
  • Merged pull requests: 65
  • Bot issues: 0
  • Bot pull requests: 36
Past Year
  • Issues: 7
  • Pull requests: 61
  • Average time to close issues: about 2 months
  • Average time to close pull requests: 6 days
  • Issue authors: 6
  • Pull request authors: 7
  • Average comments per issue: 1.0
  • Average comments per pull request: 0.07
  • Merged pull requests: 39
  • Bot issues: 0
  • Bot pull requests: 26
Top Authors
Issue Authors
  • jaimergp (4)
  • marcoesters (4)
  • ToneyAlexander (1)
  • mrclary (1)
  • conda-bot (1)
  • briantoby (1)
  • larsoner (1)
Pull Request Authors
  • pre-commit-ci[bot] (23)
  • conda-bot (22)
  • jaimergp (22)
  • marcoesters (18)
  • dependabot[bot] (13)
  • Jrice1317 (4)
  • jjhelmus (1)
Top Labels
Issue Labels
type::bug (5) type::feature (4) stale::closed (2) stale (2)
Pull Request Labels
cla-signed (70) dependencies (13) github_actions (2)

Packages

  • Total packages: 2
  • Total downloads: unknown
  • Total dependent packages: 4
    (may contain duplicates)
  • Total dependent repositories: 8
    (may contain duplicates)
  • Total versions: 28
conda-forge.org: conda-standalone
  • Versions: 8
  • Dependent Packages: 3
  • Dependent Repositories: 4
Rankings
Dependent packages count: 15.6%
Dependent repos count: 16.2%
Average: 39.0%
Forks count: 56.5%
Stargazers count: 67.7%
Last synced: 11 months ago
anaconda.org: conda-standalone

A standalone conda executable built with PyInstaller.

  • Versions: 20
  • Dependent Packages: 1
  • Dependent Repositories: 4
Rankings
Dependent packages count: 30.7%
Dependent repos count: 44.7%
Average: 47.5%
Forks count: 55.8%
Stargazers count: 58.7%
Last synced: 11 months ago

Dependencies

.github/workflows/cla.yml actions
  • conda/actions/check-cla v22.9.0 composite
.github/workflows/issues.yml actions
  • actions-ecosystem/action-add-labels v1.1.3 composite
  • actions-ecosystem/action-remove-labels v1.3.0 composite
.github/workflows/labels.yml actions
  • EndBug/label-sync v2.3.2 composite
  • actions/checkout v3 composite
  • andstor/file-existence-action v2.0.0 composite
.github/workflows/lock.yml actions
  • dessant/lock-threads v4 composite
.github/workflows/project.yml actions
  • actions/add-to-project v0.5.0 composite
.github/workflows/stale.yml actions
  • actions/stale v8 composite
  • conda/actions/read-yaml v22.9.0 composite
.github/workflows/tests.yml actions
  • actions/checkout v3 composite
  • conda-incubator/setup-miniconda v2 composite
pyproject.toml pypi
tests/requirements.txt pypi
  • pytest * test