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

adding recipe for absense to prevent issue with genera #52337

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions recipes/absense/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

# Exit on any error
set -ex

sed -i.bak '1s|^|#!/usr/bin/env python\n|' Plot_abSENSE.py


chmod +x Run_abSENSE.py Plot_abSENSE.py


# Define the Conda binary path
CONDABIN="${PREFIX}/bin"

# Ensure the directory exists
mkdir -p "$CONDABIN"


# Move executables to the Conda binary directory
mv Run_abSENSE.py "$CONDABIN"
mv Plot_abSENSE.py "$CONDABIN"
echo "Installation complete. Executables have been moved to ${CONDABIN}."
35 changes: 35 additions & 0 deletions recipes/absense/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{% set version = '1.0.1' %}

package:
name: absense
version: {{ version|replace('-', '_') }}

source:
- url: https://github.com/caraweisman/abSENSE/archive/refs/tags/v{{ version }}.tar.gz
sha256: 853418e55c012c0dd409c97a70bbc9ecb69dfa7ccc94ec0f54d54ff99ec0e9f0

build:
number: 0
noarch: python
run_exports:
- {{ pin_subpackage('absense', max_pin="x.x") }}

requirements:
host:
- python >=3.8,<3.9
run:
- python >=3.8,<3.9
- scipy =1.7.3
- matplotlib-base >=3.0.0
- dill >=0.3.9
test:
commands:
- Run_abSENSE.py -h
- Plot_abSENSE.py -h


about:
home: https://github.com/caraweisman/abSENSE
license: "GPL-3.0-or-later"
license_family: GPL3
summary: "abSENSE: a method to interpret undetected homologs"
Loading