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

Add gala recipe #1633

Merged
merged 8 commits into from
Sep 24, 2016
Merged
Changes from 1 commit
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
68 changes: 68 additions & 0 deletions recipes/gala/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{% set name = "gala" %}
{% set version = "0.4.0" %}
{% set sha256 = "53cf601a23d11f945cddd0545cf910039367f6b14759c5868efdf7bc6e9f4564" %}

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

source:
fn: {{ name }}-{{ version }}.tar.gz
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
number: 0
skip: True # [py < 35]
script: python setup.py install --single-version-externally-managed --record record.txt

requirements:
build:
- python
- setuptools
- cython
- numpy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jni b/c gala relies on numpy's ABI you need to specify numpy x.x here and below to bake the numpy build string and ensure the same numpy version used in the build will be installed at run time.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right. Can I specify a numpy range, numpy>=1.11? So that it still gets built correctly when 1.12 comes out?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I specify a numpy range, numpy>=1.11?

You can specify it twice when there is a numpy version limitation, like it only works > 1.10, for example.

So that it still gets built correctly when 1.12 comes out?

No need in that case b/c the numpy matrix is defined automatically by conda-forge. Right now our lower limit is numpy 1.10.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry can you clarify what you meant with "specify it twice"? What's the spec?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example below in the diff. Hope that clarifies it.

run:
- python
- numpy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also be numpy x.x

- networkx
- h5py
- matplotlib
- scipy
- scikit-image
- scikit-learn
- viridis
- tqdm

test:
requires:
- pytest
- coverage
- nose
- pytest-cov
imports:
- gala.agglo
- gala.agglo2
- gala.evaluate
- gala.features.histogram
commands:
- py.test --doctest-modules --pyargs gala

about:
home: https://github.com/janelia-flyem/gala
license_family: BSD
license: BSD 3-clause
# Uncomment line below when license.txt is added to PyPI source dist
# license_file: license.txt
summary: 'Automatic segmentation of electron microscopy volumes'

description: |
Gala is a Python library for performing and evaluating image segmentation,
distributed under the open-source, 3-clause BSD license. It implements the
algorithm described in Nunez-Iglesias et al., PLOS ONE, 2013.
doc_url: https://gala.readthedocs.org
dev_url: https://github.com/janelia-flyem/gala

extra:
recipe-maintainers:
- jni