Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+github.com/mamba-org/mamba #388

Merged
merged 36 commits into from
Feb 19, 2023
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
d0f0b4b
add mamba-org
ddobrinskiy Feb 13, 2023
3a077e5
add strip
ddobrinskiy Feb 13, 2023
44d8b02
Give up: hardcoded versions
ddobrinskiy Feb 13, 2023
b19975f
try another version format
ddobrinskiy Feb 13, 2023
d97ca11
Ugly hack with versions
ddobrinskiy Feb 13, 2023
a975ab2
mamba install convert to one-liner
ddobrinskiy Feb 13, 2023
a0f9567
playing around with CI
ddobrinskiy Feb 13, 2023
2ce835b
Merge branch 'main' into mamba
ddobrinskiy Feb 13, 2023
c1704b7
link mamba into bin
ddobrinskiy Feb 13, 2023
2db2826
fix mamba cli prefix
ddobrinskiy Feb 13, 2023
c2f405f
echo pwd
ddobrinskiy Feb 13, 2023
75718c2
refactor build args
ddobrinskiy Feb 13, 2023
468c6bf
use version.raw
ddobrinskiy Feb 13, 2023
71030ca
version as string?
ddobrinskiy Feb 13, 2023
d861798
ugly versions hack AGAIN
ddobrinskiy Feb 13, 2023
889b015
fix prefix
ddobrinskiy Feb 13, 2023
df2137c
omfg please work
ddobrinskiy Feb 13, 2023
9f72ce7
omfg please work
ddobrinskiy Feb 13, 2023
91210dd
should work...
ddobrinskiy Feb 14, 2023
b99edf1
testing without symlinks
ddobrinskiy Feb 14, 2023
121b936
what's up with bin files in testing?
ddobrinskiy Feb 14, 2023
a945f0b
better print for test debug
ddobrinskiy Feb 14, 2023
cb3c0d3
testing CI
ddobrinskiy Feb 14, 2023
2917dce
try to symlink opt in test env
ddobrinskiy Feb 14, 2023
d8c0295
prefix to opt link
ddobrinskiy Feb 14, 2023
4027cb5
omg please please work
ddobrinskiy Feb 14, 2023
31775db
fix shebang?
ddobrinskiy Feb 14, 2023
9aaac14
cleaner build script
ddobrinskiy Feb 14, 2023
21a508b
cleanup comments
ddobrinskiy Feb 14, 2023
17b255a
add conda to provides
ddobrinskiy Feb 14, 2023
2dbe077
cleanup comments
ddobrinskiy Feb 15, 2023
aaa23f8
fix grep tests
ddobrinskiy Feb 15, 2023
63b68ec
simplify tests
ddobrinskiy Feb 15, 2023
0fb3fe6
Merge branch 'main' into mamba
ddobrinskiy Feb 15, 2023
39e29b4
add shell init instructions
ddobrinskiy Feb 17, 2023
35ad9d7
simplify init instructions
ddobrinskiy Feb 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions projects/github.com/mamba-org/mamba/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# You may notice that this bottle named "mamba-org" refers to conda-forge github repo
# This is intentional and not an error

# cask: https://github.com/Homebrew/homebrew-cask/blob/c6e8fd99bdfd5ec217ff3b53505f42214f5cba58/Casks/mambaforge.rb

distributable:
url: https://github.com/conda-forge/miniforge/archive/refs/tags/22.11.1-4.tar.gz #FIXME UGLY HACK, NEED TO MOVE '-4' TO versions.anytext
strip-components: 1

versions:
- "22.11.1.4"

build:
dependencies:
aria2.github.io: '1.36' #FIXME aria2 has heavier dependencies than curl,
# ^ when this package is more stable and we no longer need fast local iteration,
# ^ look into swapping it for curl
script: |
#FIXME mamba provides sha256 signatures, should we check against them before building?
# ^ https://github.com/conda-forge/miniforge/releases

# download mamba installation script
aria2c -c -o mamba.sh "https://github.com/conda-forge/miniforge/releases/download/22.11.1-4/Mambaforge-22.11.1-4-$PLATFORM.sh"

# install mamba
chmod +x mamba.sh
./mamba.sh $ARGS

fix-shebangs.ts {{prefix}}/bin/*

#FIXME: add caveats
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah it's on my “TODO” to figure out how we can communicate this sort of thing.

# Please run the following to setup your shell:
# mamba init "$(basename "${SHELL}")" # updates your .zshrc or .bashrc to make mamba & conda usable

env:
# env-dependent vars
darwin/aarch64: {PLATFORM: MacOSX-arm64}
darwin/x86-64: {PLATFORM: MacOSX-x86_64}
linux/aarch64: {PLATFORM: Linux-aarch64}
linux/x86-64: {PLATFORM: Linux-x86_64}
# mamba install args
ARGS:
- -b # skip interactive - accept all licence agreements
- -s # skip running pre/post-link/install scripts
- -u # update if already installed
- -p {{prefix}} # prefix - where to install

test: |
mamba --version
conda --version

provides:
- condabin/conda
- bin/mamba