Skip to content

Commit

Permalink
adding recipe for absense to prevent issue with genera (#52337)
Browse files Browse the repository at this point in the history
Co-authored-by: Anupam Gautam <[email protected]>
  • Loading branch information
AnupamGautam and Anupam Gautam authored Nov 25, 2024
1 parent 2c315c8 commit ae038d0
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
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"

0 comments on commit ae038d0

Please sign in to comment.