aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* pip_packages now accepts name[extra1,extra2]==version stringsextra-specJoseph Hunkeler2024-11-201-6/+13
|
* Attempt conda environment removal only when its present on-diskworkaround-shebang-nightmareJoseph Hunkeler2024-11-132-2/+8
|
* Rename path_manip() to env_manipulate_pathstr()Joseph Hunkeler2024-11-132-8/+7
| | | | * Add key argument to generalize the function
* When conda's prefix is too long, die.Joseph Hunkeler2024-11-131-8/+24
|
* Remove unused file streamJoseph Hunkeler2024-11-121-1/+0
|
* Move 'env -0' translation routine out of conda_activateJoseph Hunkeler2024-11-121-39/+44
| | | | * Add static env0_to_runtime function
* Export the functions correctly?Joseph Hunkeler2024-11-121-1/+1
|
* Export the functions?Joseph Hunkeler2024-11-121-0/+2
|
* Use path_manip functionJoseph Hunkeler2024-11-121-10/+18
| | | | * Add conda_prepend_condabin helper
* Add path_manip functionJoseph Hunkeler2024-11-121-0/+43
|
* Add source mamba.sh before redefining the functionJoseph Hunkeler2024-11-121-1/+1
|
* Add __mamba_exe shell function as wellJoseph Hunkeler2024-11-111-0/+5
|
* Again with the syntax issues on macosJoseph Hunkeler2024-11-111-1/+3
|
* Revert activation procedure, with tweaksJoseph Hunkeler2024-11-111-13/+17
| | | | | | * Convert CONDA_SHLVL to an integer. If this variable is non-zero then deactivate the current environment before activating a new one. * Conda's initialization scripts don't handle shebang lines longer than 127 bytes on Linux. I'm aware they handle it in conda itself, but the "bug" is such that you cannot use conda to reap the benefits of their workaround(s). * This redefines the __conda_exe shell function so that conda is always executed by the base environment's Python interpreter via CONDA_PYTHON_EXE.
* Remove conda-verify requirement entirelyJoseph Hunkeler2024-11-111-1/+0
| | | | * This package only exists for python<=3.11 and is considered optional by conda-build.
* Clarify the conditional SUCCESS/FAIL branching a bitsafety-and-convenienceJoseph Hunkeler2024-11-021-4/+4
|
* Amend counter-only loop statementJoseph Hunkeler2024-11-021-1/+1
|
* Remove unused codeJoseph Hunkeler2024-11-021-2/+0
|
* Add missing doc parameterJoseph Hunkeler2024-11-021-0/+1
|
* Combine initializer with declarationJoseph Hunkeler2024-11-022-8/+5
|
* Return shell() directlyJoseph Hunkeler2024-11-021-3/+1
| | | | * The status variable is redundant
* Bug fixes:Joseph Hunkeler2024-11-024-9/+38
| | | | | | | | * Remove PATH modification from check_pathvar * Rename check_pathvar to check_system_path * Add conda_prepend_bin function to handle PATH modification during activation * Add logic to handle first-run activation, and subsequent calls to change conda environments (otherwise conda clobbers its own shell functions) * Use $CONDA_PYTHON_EXE and $CONDA_EXE to ensure conda comes from the just-installed tree
* Initialize structs to {0} and combine declaration and assignment where possibleJoseph Hunkeler2024-11-0127-212/+126
|
* Replace initialize character arrays using {0} instead of memsetJoseph Hunkeler2024-11-0115-78/+41
|
* Remote PATH= definition in commandorder-mattersJoseph Hunkeler2024-10-311-3/+1
| | | | * check_pathvar was the culprit
* Move check_pathvarJoseph Hunkeler2024-10-311-1/+1
| | | | * This needed to be one line up, otherwise the next function would not be able to import conda
* Workaround for latest conda regressionJoseph Hunkeler2024-10-281-1/+3
| | | | | * profile.d/{conda,mamba}.sh don't set PATH so "import conda" and "import mamba" fail when conda is invoked. Fantastic. * Put conda's python interpreter on the PATH before using conda for the first time
* Strip the version spec off of the package name if presentcombine-providesJoseph Hunkeler2024-10-241-3/+15
|
* Fix regression:Joseph Hunkeler2024-10-241-34/+45
| | | | | * Wheels are only built now if they appear in the pip_packages_deferred list. * Strip the version spec off of the package name if present
* Change signature of check_pathvar()Joseph Hunkeler2024-10-242-2/+2
| | | | * From (char *) to (void)
* Move fd initializer downJoseph Hunkeler2024-10-241-2/+2
|
* Generalize *_index_provides interfaceJoseph Hunkeler2024-10-242-46/+61
| | | | | * Replaces conda_* and pip_* with pkg_index_provides * Because this function can fail in so many ways I've added pkg_index_provides_strerror() and a detection macro PKG_INDEX_PROVIDES_FAILED() to make things easier
* mp_pool_show_summary now prints "HOLD" when queued tasks haven't been ↵Joseph Hunkeler2024-10-221-1/+7
| | | | executed and the pool is killed
* Add MP_POOL_TASK_STATUS_INITIALJoseph Hunkeler2024-10-221-2/+2
| | | | * Better than putting -1 everywhere
* Bug fix:Joseph Hunkeler2024-10-211-1/+1
| | | | * XDG_CACHE_HOME is now pointing to cache_local instead of TMPDIR
* Change signature:Joseph Hunkeler2024-10-212-12/+19
| | | | * delivery_gather_tool_versions now returns non-zero if unable to determine a tool's version
* Update conda_provides:Joseph Hunkeler2024-10-211-2/+11
| | | | | * Avoid false positives by returning early when the spec is empty * Remove --use-index-cache. The remote channel must always be checked (conda is extremely slow to read its own channel data, so expect abnormally long delays on first-run)
* Fix pip_index_providesJoseph Hunkeler2024-10-211-1/+1
| | | | | * Always quote the incoming spec to avoid accidental shell redirection * Never use the local cache. We're checking a remote source, so it matters greatly where pip is looking for the package
* Reduce length of stasis_main.crestructure-the-worldJoseph Hunkeler2024-10-1411-260/+370
|
* Refactor directory structureJoseph Hunkeler2024-10-1441-54/+70
| | | | | * Move core library sources into src/lib/core * Move command-line programs into src/cli
* Don't run serial tasks in parallelits-backwardsJoseph Hunkeler2024-10-101-1/+1
|
* Fix accidental combination of strlen and another strlenleaks-and-squeaksJoseph Hunkeler2024-10-091-1/+1
|
* str.c: fix leakJoseph Hunkeler2024-10-091-2/+3
|
* str.c: fix realloc(s)Joseph Hunkeler2024-10-091-1/+1
|
* junitxml.c: fix realloc(s)Joseph Hunkeler2024-10-091-2/+2
|
* ini.c: fix realloc(s)Joseph Hunkeler2024-10-091-8/+8
|
* Consolidate repeated branch conditionsJoseph Hunkeler2024-10-091-3/+1
|
* Typo: misson -> missionJoseph Hunkeler2024-10-091-1/+1
|
* Fixes null value when the input path did not existindexer-fixupsJoseph Hunkeler2024-10-091-0/+6
|
* Add static function micromamba_configure() to indexerJoseph Hunkeler2024-10-091-9/+39
| | | | | * Performing all of the setup tasks within indexer_conda() is very restrictive * The conda environment bin directory is added to the program PATH