Skip to content

Commit

Permalink
bonsu: new recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoonj committed Jul 18, 2019
1 parent 0ad5378 commit e8176f8
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
61 changes: 61 additions & 0 deletions recipes/bonsu/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{% set name = "Bonsu" %}
{% set version = "3.0.0" %}

package:
name: "{{ name|lower }}"
version: "{{ version }}"

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: d10e491325e5ff63e6a9d2aa8574cd25961e5796aa9ee666c50f24d27a80a5b6
patches:
# submitted upstream as https://github.com/bonsudev/bonsu/pull/1
- setup.py.patch

build:
number: 0
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv --global-option=build_ext --global-option=-I$PREFIX/include"

requirements:
build:
- {{ compiler('cxx') }}
- {{ cdt('libXxf86vm') }} # [linux]
- {{ cdt('mesa-libgl') }} # [linux]
host:
- pip
- setuptools
- python
- pillow
- wxpython
- vtk
- numpy
- fftw
run:
- python
- pillow
- wxpython
- vtk
- numpy
- fftw

test:
imports:
- bonsu
- bonsu.docs
- bonsu.image
- bonsu.interface
- bonsu.lib
- bonsu.operations
- bonsu.phasing
- bonsu.sequences

about:
home: https://github.com/bonsudev/bonsu
license: GPL3
license_family: GPL3
license_file: bonsu/licence/gpl.txt
summary: Bonsu - The Interactive Phase Retrieval Suite

extra:
recipe-maintainers:
- tschoonj
14 changes: 14 additions & 0 deletions recipes/bonsu/setup.py.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/setup.py b/setup.py
index c1340ec..ef86a89 100755
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@ if args[0].startswith('bdist_wheel'):
from setuptools import setup, Extension
else:
from distutils.core import setup, Extension
-filename_bonsu = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'bonsu', 'interface', 'bonsu.py')
+filename_bonsu = os.path.join(os.path.dirname(__file__), 'bonsu', 'interface', 'bonsu.py')
f1_bonsu = open(filename_bonsu, 'r')
lines = f1_bonsu.readlines()
for i in range(len(lines)):

2 changes: 2 additions & 0 deletions recipes/bonsu/yum_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
libXxf86vm
mesa-libGL

0 comments on commit e8176f8

Please sign in to comment.