-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
+72
−0
Merged
Add gala recipe #1633
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
921c879
Add gala recipe
jni 69ab516
Update gala version
jni d43af43
Include numpy version spec
jni 1f418d3
Another attempt at numpy spec...
jni 1484c4f
Third time's the charm with numpy spec?
jni 5f7c6a5
Ignore gala files dependent on neuroproof
jni 948ac24
Add missing zmq dependency
jni bb53db4
Ignore pytest commands for now
jni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
run: | ||
- python | ||
- numpy | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should also be |
||
- 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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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 specifynumpy x.x
here and below to bake thenumpy
build string and ensure the samenumpy
version used in the build will be installed at run time.There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can specify it twice when there is a numpy version limitation, like it only works > 1.10, for example.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.