Package Details: micromamba 2.3.0-2

Git Clone URL: https://aur.archlinux.org/micromamba.git (read-only, click to copy)
Package Base: micromamba
Description: The fast cross-platform package manager
Upstream URL: https://github.com/mamba-org/mamba
Licenses: BSD-3-Clause
Conflicts: micromamba-bin
Provides: libmamba, libmambapy
Submitter: gdolle
Maintainer: carlosal1015 (brianrobt, flying-sheep)
Last Packager: carlosal1015
Votes: 9
Popularity: 0.72
First Submitted: 2021-03-21 15:23 (UTC)
Last Updated: 2025-07-23 17:09 (UTC)

Latest Comments

1 2 3 4 Next › Last »

peippo commented on 2025-07-29 09:24 (UTC)

I run into this compilation error:

[143/167] Building CXX object libmambapy/CMakeFiles/bindings.dir/src/libmambapy/bindings/legacy.cpp.o
FAILED: libmambapy/CMakeFiles/bindings.dir/src/libmambapy/bindings/legacy.cpp.o 
/usr/bin/c++ -DFMT_SHARED -DMAMBA_USE_INSTALL_PREFIX_AS_BASE -DSPDLOG_FMT_EXTERNAL -DSPDLOG_FWRITE_UNLOCKED -Dbindings_EXPORTS -I/build/micromamba/src/mamba-2.3.0/libmambapy/src/libmambapy/bindings -I/build/micromamba/src/mamba-2.3.0/libmamba/include -isystem /usr/include/python3.13 -isystem /usr/share -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/micromamba/src=/usr/src/debug/micromamba -flto=auto -O3 -DNDEBUG -std=c++20 -fPIC -fvisibility=hidden -Wall -Wextra -Wshadow -Wnon-virtual-dtor -Wold-style-cast -Wcast-align -Wunused -Woverloaded-virtual -Wpedantic -Wconversion -Wsign-conversion -Wdouble-promotion -Wformat=2 -Wunreachable-code -Wuninitialized -Wmisleading-indentation -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wuseless-cast -flto -fno-fat-lto-objects -Wno-error=deprecated-declarations -MD -MT libmambapy/CMakeFiles/bindings.dir/src/libmambapy/bindings/legacy.cpp.o -MF libmambapy/CMakeFiles/bindings.dir/src/libmambapy/bindings/legacy.cpp.o.d -o libmambapy/CMakeFiles/bindings.dir/src/libmambapy/bindings/legacy.cpp.o -c /build/micromamba/src/mamba-2.3.0/libmambapy/src/libmambapy/bindings/legacy.cpp
In file included from /usr/include/pybind11/attr.h:14,
                 from /usr/include/pybind11/detail/class.h:12,
                 from /usr/include/pybind11/pybind11.h:12,
                 from /usr/include/pybind11/functional.h:12,
                 from /build/micromamba/src/mamba-2.3.0/libmambapy/src/libmambapy/bindings/legacy.cpp:11:
/usr/include/pybind11/cast.h: In instantiation of ‘static pybind11::handle pybind11::type::handle_of() [with T = mamba::QueryType]’:
/usr/include/pybind11/detail/../pytypes.h:1583:39:   required from ‘static pybind11::type pybind11::type::of() [with T = mamba::QueryType]’

...

/build/micromamba/src/mamba-2.3.0/libmambapy/src/libmambapy/bindings/legacy.cpp:1395:22:   required from here
/usr/include/pybind11/cast.h:2337:89: error: static assertion failed: py::type::of<T> only supports the case where T is a registered C++ types.
 2337 |     static_assert(std::is_base_of<detail::type_caster_generic, detail::make_caster<T>>::value,
      |                                                                                         ^~~~~

Do you have any tips what this could be cause by?

flying-sheep commented on 2025-07-25 11:22 (UTC) (edited on 2025-07-25 11:33 (UTC) by flying-sheep)

the issues are because of pybind11 3.0: https://github.com/mamba-org/mamba/issues/4024

with pybind11 2.x installed, we just need to modify package() to have a cd ${_pkgname}-${pkgver} before the install -Dm 644 LICENSE … and everything works:

paru -Qlq micromamba | treeify 
[/]
 └─usr
    ├─bin/mamba
    ├─etc/profile.d/mamba.sh
    ├─include/mamba/**.hpp
    ├─lib
    │  ├─cmake/libmamba/*.cmake
    │  ├─libmamba.so
    │  ├─libmamba.so.4
    │  ├─libmamba.so.4.0.1
    │  └─python3.13
    │     └─site-packages
    │        ├─libmambapy/**.py
    │        └─libmambapy-2.3.0.dist-info
    │           ├─METADATA
    │           ├─RECORD
    │           ├─WHEEL
    │           ├─licenses
    │           │  └─LICENSE
    │           └─top_level.txt
    └─share/licenses/micromamba/LICENSE.txt

carlosal1015 commented on 2025-07-23 17:11 (UTC)

I see many errors like that, could you try fix @flying-sheep

FAILED: libmambapy/CMakeFiles/bindings.dir/src/libmambapy/bindings/utils.cpp.o

carlosal1015 commented on 2025-07-23 16:10 (UTC)

Thanks, I agree that if wheels are available, let's follow https://wiki.archlinux.org/title/Python_package_guidelines#Standards_based_(PEP_517)

But I do not modify cmake flags.

flying-sheep commented on 2025-07-23 11:44 (UTC) (edited on 2025-07-23 11:45 (UTC) by flying-sheep)

you’re installing libmambapy wrong. you need to install the package metadata too.

otherwise conda fails on startup with

importlib.metadata.PackageNotFoundError: No package metadata was found for libmambapy

When I built it, I used the following, maybe that helps

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

  cmake -S. -Bbuild \
    -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
    -DBUILD_LIBMAMBA=ON \
    -DBUILD_LIBMAMBAPY=ON \
    -DBUILD_MICROMAMBA=OFF \
    -DBUILD_MAMBA_PACKAGE=OFF \
    -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=OFF \
      -DBUILD_MAMBA_PACKAGE=OFF \
      -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
}

peippo commented on 2025-06-14 19:41 (UTC)

The version numbers in PKGBUILD and .SRCINFO differ which leads to, e.g., aurutils attempting to re-build micromamba on every run. Could you bump both values to a common version?

brianrobt commented on 2025-06-12 14:35 (UTC)

@bcb, Thanks for catching that! Updated version has been pushed.

bcb commented on 2025-06-11 07:35 (UTC)

I can't build this in a clean chroot (using aurutils) as prepare() tries to use relative paths for the patches. Please replace these with

  patch -p0 -i "${srcdir}/static-off.patch"
  patch -p0 -i "${srcdir}/utils.cpp.patch"

to ensure the patches can be found :).

flying-sheep commented on 2025-06-10 09:47 (UTC)

it does, thank you!