Package Details: micromamba 1.5.8-2

Git Clone URL: https://aur.archlinux.org/micromamba.git (read-only, click to copy)
Package Base: micromamba
Description: C++ tiny version of mamba, the fast conda package installer
Upstream URL: https://github.com/mamba-org/mamba
Licenses: BSD-3-Clause
Conflicts: micromamba-bin
Provides: libmamba
Submitter: gdolle
Maintainer: gdolle
Last Packager: gdolle
Votes: 8
Popularity: 0.011171
First Submitted: 2021-03-21 15:23 (UTC)
Last Updated: 2024-08-30 13:35 (UTC)

Latest Comments

flying-sheep commented on 2024-10-23 19:19 (UTC) (edited on 2024-10-23 19:32 (UTC) by flying-sheep)

OK, thanks to henriii, we got it!

pkgname=micromamba
pkgver=2.0.0
_srcver=2024.09.25 
_name=mamba-$_srcver
pkgrel=1
pkgdesc="The fast cross-platform package manager"
arch=('x86_64')
url="https://github.com/mamba-org/mamba"
license=('BSD-3-Clause')
depends=(
  'fmt'
  'libsolv'
  'python>=3.9'
  'reproc'
  'yaml-cpp>=0.8.0'
  'simdjson'
)
makedepends=(
  # header-only libs
  'cli11'
  'spdlog'
  'tl-expected'
  'nlohmann-json'
  # C++ build tools
  'ccache'
  'python-cmake>=3.18'
  'doctest'
  'python-ninja'
  'pybind11'
  # python build tools
  'python-build'
  'python-installer'
  'python-scikit-build>=0.13'
  'python-setuptools>=42'
  'python-wheel'
)
provides=("libmamba=$pkgver" "python-libmambapy=$pkgver")
replaces=('python-libmamba')
conflicts=('python-libmamba')
#options=(!emptydirs)
#backup=(etc/conda/condarc)
source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/$_srcver.tar.gz")
sha512sums=('6b3e64255f8aa63723dd08f578f79195b46249a02002b6d0d77713fd181f0557e3b6044075a823e639b0240b07b4e17dd0c9c17790c9152a68992e3ca9a599fa')

build() {
  cd "$srcdir/$_name"

  cmake -S. -Bbuild \
    -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
    -DBUILD_LIBMAMBA=ON \
    -DBUILD_LIBMAMBAPY=ON \
    -DBUILD_MICROMAMBA=ON \
    -DBUILD_MAMBA_PACKAGE=ON \
    -DBUILD_SHARED=ON
  cmake --build build --parallel 8
  cmake --install build --prefix install

  cd libmambapy
  export SKBUILD_CONFIGURE_OPTIONS="\
      -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
      -DBUILD_LIBMAMBA=ON \
      -DBUILD_LIBMAMBAPY=ON \
      -DBUILD_MICROMAMBA=ON \
      -DBUILD_MAMBA_PACKAGE=ON \
      -Dlibmamba_ROOT=$PWD/../install"
  python -m build -x --wheel --no-isolation
}

package() {
  cd "$srcdir/$_name"
  cmake --install build/ --prefix "$pkgdir/usr"

  cd "$srcdir/$_name/libmambapy"
  python -m installer --destdir="$pkgdir" dist/*.whl

  install -Dm 644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE.txt
}

flying-sheep commented on 2024-09-28 09:09 (UTC) (edited on 2024-09-28 09:49 (UTC) by flying-sheep)

OK, it also has some more build dependencies: python-cmake and python-ninja

python-ninja exists, and I packaged https://aur.archlinux.org/packages/python-cmake-bin for that reason. We might want to change it so it uses system cmake!

Once you updated this package to build and to have provides=(... python-libmamba) I can retire https://aur.archlinux.org/packages/python-libmamba

I think I’m almost at a point where I’m getting this to build. Only problem is that 2.0 calls cmake on its own, and I’m unsure how to deal with it. I asked the scikit-build people for help, let’s see.

flying-sheep commented on 2024-09-27 15:03 (UTC)

I think the 2.0.0 release build just needs the added simdjson dependency and --preset mamba-unix-shared-release.

Could you also please add python-libmamba to the provides array? “libmambapy” is a python library with that name!

micwoj92 commented on 2024-08-08 00:05 (UTC) (edited on 2024-08-08 00:06 (UTC) by micwoj92)

conflict and provides are useless and need to be removed. conflict itself should be conflicts
MIT license is wrong, the project uses BSD-3 clause license.
According to namcap several dependencies are not needed.

These seem to be only needed in make process, so move to makedeps

micromamba W: Dependency included, but may not be needed ('cmake')
micromamba W: Dependency included, but may not be needed ('cli11')
micromamba W: Dependency included, but may not be needed ('pybind11')
micromamba W: Dependency included, but may not be needed ('spdlog')
micromamba W: Dependency included, but may not be needed ('nlohmann-json')
micromamba W: Dependency included, but may not be needed ('tl-expected')

This is false positive as it needs pip to install packages, I guess to satisfy namcap one could move this to optdepends, but idk what else you can use mamba for other than installing packages.

micromamba W: Dependency included, but may not be needed ('python-pip')

These 2 can be dropped.
Since micromamba(or rather libmamba 0.26.0) it uses std::filesystem instead of ghc::filesystem.
Since 1.1.0 termcolor is no longer needed.

micromamba W: Dependency included, but may not be needed ('ghc-filesystem')
micromamba W: Dependency included, but may not be needed ('termcolor')

1995parham commented on 2023-06-16 12:55 (UTC)

It is fixed here

1995parham commented on 2023-06-06 05:41 (UTC)

I have the following error for upgrading to 1.4.4-1.

/home/parham/.cache/yay/micromamba/src/mamba-2023.05.16/libmamba/src/solv-cpp/solvable.cpp:153:81: error: ‘uint64_t’ is not a member of ‘std’; did you mean ‘wint_t’?
  153 |             std::numeric_limits<decltype(n)>::max() <= std::numeric_limits<std::uint64_t>::max()
      |                                                                                 ^~~~~~~~
      |                                                                                 wint_t
/home/parham/.cache/yay/micromamba/src/mamba-2023.05.16/libmamba/src/solv-cpp/solvable.cpp:153:89: error: template argument 1 is invalid
  153 |             std::numeric_limits<decltype(n)>::max() <= std::numeric_limits<std::uint64_t>::max()

G3ro commented on 2022-08-29 19:17 (UTC) (edited on 2022-08-29 19:18 (UTC) by G3ro)

It might be obvious to some folks, but if you get an error during compilation stating that core.h from FMT wasn't found, it is related to this report: https://bugs.archlinux.org/task/74295

So you need to rebuild and install spdlog first, with uncommented line "#define SPDLOG_FMT_EXTERNAL" in tweakme.h in the sources.

gdolle commented on 2021-10-15 16:25 (UTC) (edited on 2021-10-15 16:26 (UTC) by gdolle)

@izahn, I will update next libsolv release (see mamba issue #1155).

izahn commented on 2021-10-15 07:50 (UTC)

mamba has improved considerably over the last few months, it would be great to update this package to the latest version.