chopper icon indicating copy to clipboard operation
chopper copied to clipboard

Conda missing package for Mac M3

Open l-gallucci opened this issue 1 year ago • 2 comments

Hi,

I'm facing issues in installing chopper through conda...using bioconda channels give a missing package result.

l-gallucci avatar Aug 26 '24 13:08 l-gallucci

Actually, I got the main problem is the distribution...as mac from M processor series are arm processor, the package is actually available for osx-64 platform. Even setting bioconda correctly, the only way to install it is to have an environment set to osx-64 instead of osx-arm64:

mamba create -n chopper --platform osx-64 -c bioconda chopper

This actually solved problem of installation, hope can be helpful for others...sorry for the "not useful" issue.

l-gallucci avatar Aug 26 '24 14:08 l-gallucci

Ah, thanks for letting me know, and sharing the solution. I will see if this is something I can fix...

wdecoster avatar Aug 26 '24 19:08 wdecoster

this should be fixable by changing the recipe in the bioconda-recipes. I believe something like this would work

`{% set version = "0.9.0" %}

package: name: chopper version: {{ version }}

build: number: 0 run_exports: - {{ pin_subpackage('chopper', max_pin="x.x") }} skip: false # [not (linux-64 or osx)] platforms: - linux-64 - osx-64 - osx-arm64

source: url: https://github.com/wdecoster/chopper/archive/v{{ version }}.tar.gz sha256: ae5b6f8f5ffde45582998b63cb45b4221b25ee37a9fde7a256e653c7f3f12075

requirements: build: - rust >=1.64
- autoconf - make - {{ compiler('cxx') }} - pkg-config - cmake - zlib - clang host: - zlib - clang run: - zlib - clang

test: commands: - chopper --help

about: home: https://github.com/wdecoster/chopper license: MIT license_file: LICENSE summary: A rust command line for filtering and trimming long reads. dev_url: https://github.com/wdecoster/chopper doc_url: https://github.com/wdecoster/chopper#readme notes: | includes native support for Apple Silicon (M1/M2/M3) processors `

michael-swift avatar Oct 28 '24 20:10 michael-swift

Thank you! I have updated the recipe based on your suggestion.

https://github.com/bioconda/bioconda-recipes/pull/51754

wdecoster avatar Oct 29 '24 09:10 wdecoster