/
meta.yaml
223 lines (198 loc) · 8.92 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
{% set name = "mamba" %}
{% set libmamba_version = "2.0.0beta1" %}
{% set libmambapy_version = "2.0.0beta1" %}
{% set mamba_version = "2.0.0beta1" %}
{% set release = "2024.05.04" %}
package:
name: mamba-split
source:
url: https://github.com/mamba-org/mamba/archive/refs/tags/{{ release }}.tar.gz
sha256: 4c15fdee5cb857e8db222a2cc31dc490e7113c5a28badc60e4a76e2a63dbaafe
build:
number: 0
outputs:
- name: libmamba
version: {{ libmamba_version }}
script: build_mamba.sh # [unix]
script: build_mamba.bat # [win]
build:
run_exports:
- {{ pin_subpackage('libmamba', max_pin='x.x') }}
ignore_run_exports:
- spdlog
- python # [win]
requirements:
build:
- {{ compiler('cxx') }}
- cmake
- ninja
- python # [win]
host:
- libsolv >=0.7.23
- libcurl >=8.4.0
- openssl
- libarchive
- nlohmann_json
- cpp-expected
- reproc
- reproc-cpp >=14.2.4.post0
- spdlog
- yaml-cpp
- cli11
- fmt
- winreg # [win]
- zstd
- simdjson >=3.3.0
run:
# Missing run_export in libsolv
- {{ pin_compatible('libsolv', max_pin='x.x.x') }}
# Public libmamba dependencies
- {{ pin_compatible('fmt', max_pin='x.x') }}
- {{ pin_compatible('spdlog', max_pin='x.x') }}
- {{ pin_compatible('cpp-expected', max_pin='x.x') }}
- {{ pin_compatible('nlohmann_json', max_pin='x.x') }}
- {{ pin_compatible('yaml-cpp', max_pin='x.x') }}
- {{ pin_compatible('reproc', max_pin='x.x') }}
- {{ pin_compatible('reproc-cpp', max_pin='x.x') }}
test:
commands:
- test -d ${PREFIX}/include/mamba # [unix]
- test -f ${PREFIX}/include/mamba/version.hpp # [unix]
- test -f ${PREFIX}/lib/cmake/libmamba/libmambaConfig.cmake # [unix]
- test -f ${PREFIX}/lib/cmake/libmamba/libmambaConfigVersion.cmake # [unix]
- test -e ${PREFIX}/lib/libmamba${SHLIB_EXT} # [unix]
- if not exist %LIBRARY_PREFIX%\include\mamba\version.hpp (exit 1) # [win]
- if not exist %LIBRARY_PREFIX%\lib\cmake\libmamba\libmambaConfig.cmake (exit 1) # [win]
- if not exist %LIBRARY_PREFIX%\lib\cmake\libmamba\libmambaConfigVersion.cmake (exit 1) # [win]
- if not exist %LIBRARY_PREFIX%\bin\libmamba.dll (exit 1) # [win]
- if not exist %LIBRARY_PREFIX%\lib\libmamba.lib (exit 1) # [win]
{% set libmamba_version_split = libmamba_version.split('.') %}
- cat $PREFIX/include/mamba/version.hpp | grep "LIBMAMBA_VERSION_MAJOR {{ libmamba_version_split[0] }}" # [unix]
- cat $PREFIX/include/mamba/version.hpp | grep "LIBMAMBA_VERSION_MINOR {{ libmamba_version_split[1] }}" # [unix]
# TODO: uncomment for release 2.0.0
#- cat $PREFIX/include/mamba/version.hpp | grep "LIBMAMBA_VERSION_PATCH {{ libmamba_version_split[2] }}" # [unix]
- name: libmambapy
version: {{ libmambapy_version }}
script: build_mamba.sh # [unix]
script: build_mamba.bat # [win]
build:
string: py{{ CONDA_PY }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
run_exports:
- {{ pin_subpackage('libmambapy', max_pin='x.x') }}
ignore_run_exports:
- spdlog
skip: True # [python_impl == 'pypy']
requirements:
build:
- {{ compiler('cxx') }}
- cmake
- ninja
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- pybind11 # [build_platform != target_platform]
- pybind11-abi # [build_platform != target_platform]
host:
- python
- scikit-build
- pip
- pybind11
- pybind11-abi
- openssl
- yaml-cpp
- cpp-expected
- spdlog
- fmt
- termcolor-cpp
- nlohmann_json
- {{ pin_subpackage('libmamba', exact=True) }}
run:
- python
- {{ pin_subpackage('libmamba', exact=True) }}
test:
imports:
- libmambapy
- libmambapy.bindings
commands:
#- python -c "import libmambapy._version; assert libmambapy._version.__version__ == '{{ libmambapy_version }}'"
- name: mamba
version: {{ mamba_version }}
script: build_mamba.sh # [unix]
script: build_mamba.bat # [win]
build:
ignore_run_exports_from:
- libcurl # [unix]
- openssl # [unix]
- spdlog
- fmt
- {{ compiler('cxx') }} # [linux]
- python # [win]
- libsolv
requirements:
build:
- {{ compiler('cxx') }}
- cmake
- ninja
- vcpkg-tool # [win]
- python # [win]
- curl >=8.4.0 # [win]
- zlib # [win]
host:
- cli11 >=2.2,<3
- reproc
- reproc-cpp
- {{ pin_subpackage('libmamba', exact=True) }}
run:
- {{ pin_subpackage('libmamba', exact=True) }}
test:
commands:
- test -f "${PREFIX}/bin/mamba" # [unix]
- if not exist %LIBRARY_BIN%\mamba.exe (exit 1) # [win]
- mamba --help
- export MAMBA_ROOT_PREFIX="$(mktemp -d)" # [unix]
- mkdir %TEMP%\mamba # [win]
- set "MAMBA_ROOT_PREFIX=%TEMP%\mamba" # [win]
- mamba clean --all --dry-run # [unix]
# The following test is segfaulting but we couod not reproduce it outside the build
# environment, so we're moving on with the 2.0.0beta0 release.
# - mamba repoquery depends mamba # [unix]
- mamba create -n test --override-channels -c conda-forge --yes python=3.9
- '"${MAMBA_ROOT_PREFIX}/envs/test/bin/python" --version' # [unix]
- '%MAMBA_ROOT_PREFIX%\envs\test\python.exe --version' # [win]
- '"${MAMBA_ROOT_PREFIX}/envs/test/bin/python" -c "import os"' # [unix]
- '%MAMBA_ROOT_PREFIX%\envs\test\python.exe -c "import os"' # [win]
about:
home: https://github.com/mamba-org/mamba
license: BSD-3-Clause
license_file: LICENSE
license_family: BSD
summary: A fast drop-in alternative to conda, using libsolv for dependency resolution
description: |
# Mamba, the Fast Cross-Platform Package Manager
[![Build Status](https://github.com/mamba-org/mamba/workflows/CI/badge.svg)](https://github.com/mamba-org/mamba/actions)
[![Join the Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mamba-org/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![docs](https://readthedocs.org/projects/mamba/badge/?version=latest&style=flat)](https://mamba.readthedocs.io/en/latest)
`mamba` is a reimplementation of the conda package manager in C++.
- parallel downloading of repository data and package files using multi-threading
- libsolv for much faster dependency solving, a state of the art library used in the RPM package manager of Red Hat, Fedora and OpenSUSE
- core parts of `mamba` are implemented in C++ for maximum efficiency
At the same time, `mamba` utilizes the same command line parser, package installation and deinstallation code and transaction verification routines as `conda` to stay as compatible as possible.
Mamba is part of a bigger ecosystem to make scientific packaging more sustainable. You can read our [announcement blog post](https://medium.com/@QuantStack/open-software-packaging-for-science-61cecee7fc23).
The ecosystem also consists of `quetz`, an open source `conda` package server and `boa`, a fast `conda` package builder.
### Installation
Please refer to the [`mamba` and `micromamba` installation guide](https://mamba.readthedocs.io/en/latest/installation.html) in the documentation.
### Additional features in Mamba and Micromamba
`mamba` and `micromamba` come with features on top of stock `conda`.
### `repoquery`
To efficiently query repositories and query package dependencies you can use `mamba repoquery` or `micromamba repoquery`.
See the [repoquery documentation](https://mamba.readthedocs.io/en/latest/user_guide/mamba.html#repoquery) for details.
### Installing lock files
`micromamba` can be used to install lock files generated by [conda-lock](https://conda-incubator.github.io/conda-lock/) without having to install `conda-lock`. Simply invoke e.g. `micromamba create -n my-env -f conda-lock.yml` with an environment lockfile named `*-lock.yml` or `*-lock.yaml`.
dev_url: https://github.com/mamba-org/mamba
extra:
recipe-maintainers:
- AntoinePrv
- adriendelsalle
- SylvainCorlay
- JohanMabille
- wolfv
- ericmjl