frederic-mahe / mumu

C++ implementation of lulu, a R package for post-clustering curation of metabarcoding data
GNU General Public License v3.0
7 stars 0 forks source link

Installation within conda environment #8

Closed givdieri closed 1 month ago

givdieri commented 1 month ago

I was trying to switch out LULU for MUMU in a bash program within a conda environment Installation within an environment doesn't seem possible without these changes to the Makefile: (If this doesn't make sense to you - I am not very knowledgeable in these matters)

(1) line 31

prefix ?= /usr/local

(2) line 85

install: $(PROG) $(MAN)
    mkdir -p $(DESTDIR)$(bindir)
    $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(bindir)/
    mkdir -p $(DESTDIR)$(man1dir)
    $(INSTALL_PROGRAM) $(MAN) $(DESTDIR)$(man1dir)/

This allows to specify a conda environment to install in (e.g.):

make install DESTDIR=$(conda info --base)/envs/env_name
frederic-mahe commented 1 month ago

Hello @givdieri thanks for trying mumu. I took the liberty to edit your post to improve code markup. Commits efab5b3889a1590241202b8b4f544fbec8068dd2 and de8b93de2b07fc14d25d6bd810bcd6b1a0e3f313 add the changes you've suggested to the main branch.

Please close the issue if this new version works for you.

givdieri commented 1 month ago

Hi Frederic

This is perfect, thanks for the enhancements!