Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conda missing package for Mac M3 #40

Open
luigallucci opened this issue Aug 26, 2024 · 4 comments
Open

Conda missing package for Mac M3 #40

luigallucci opened this issue Aug 26, 2024 · 4 comments

Comments

@luigallucci
Copy link

Hi,

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

@luigallucci
Copy link
Author

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.

@wdecoster
Copy link
Owner

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

@michael-swift
Copy link

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
`

wdecoster added a commit to bioconda/bioconda-recipes that referenced this issue Oct 29, 2024
This PR adds some changes to make this work on mac M3s, based on wdecoster/chopper#40
@wdecoster
Copy link
Owner

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

bioconda/bioconda-recipes#51754

bgruening pushed a commit to bioconda/bioconda-recipes that referenced this issue Oct 29, 2024
* Update meta.yaml for M3s

This PR adds some changes to make this work on mac M3s, based on wdecoster/chopper#40

* bump build number

* Use additional platforms

* Do not build for aarch64/arm64

---------

Co-authored-by: Martin Grigorov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants