Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Add conda-recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinpape committed Jan 5, 2018
1 parent e7b4f44 commit c373a6b
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conda-recipe/build.sh
@@ -0,0 +1,7 @@
PY_VER=$(python -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))")

# Install python modules
mkdir -p ${PREFIX}/inferno
cp -r inferno/* ${PREFIX}/inferno
echo "${PREFIX}" > ${PREFIX}/lib/python${PY_VER}/site-packages/inferno.pth
python -m compileall ${PREFIX}/inferno
39 changes: 39 additions & 0 deletions conda-recipe/meta.yaml
@@ -0,0 +1,39 @@
package:
name: inferno

{% set tagged_version = GIT_DESCRIBE_TAG|replace("v","")|replace("-", ".") %}

# If we're using a non-tagged revision, append '.postN' to the version
{% if GIT_DESCRIBE_NUMBER|int != 0 %}
{% set tagged_version = tagged_version + '.post' + GIT_DESCRIBE_NUMBER %}
{% endif %}

version: {{tagged_version}}

source:
path: ..

build:
number: 1
string: py_{{PKG_BUILDNUM}}_g{{GIT_FULL_HASH[:7]}}

requirements:
build:
- python {{PY_VER}}*
run:
- python {{PY_VER}}*
- pytorch
- torchvision
- pyyaml
- scipy
- scikit-image
- h5py
- dill

test:
imports:
- inferno

about:
license: Apache License 2.0
summary: A utility library around PyTorch

0 comments on commit c373a6b

Please sign in to comment.