diff --git a/conda.recipe/bld.bat b/conda.recipe/bld.bat new file mode 100644 index 0000000..c89c9b0 --- /dev/null +++ b/conda.recipe/bld.bat @@ -0,0 +1,2 @@ +"%PYTHON%" setup.py install +if errorlevel 1 exit 1 diff --git a/conda.recipe/build.sh b/conda.recipe/build.sh new file mode 100644 index 0000000..882f2e2 --- /dev/null +++ b/conda.recipe/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# see https://github.com/numpy/numpy/issues/7427 +LDFLAGS="$LDFLAGS -undefined dynamic_lookup -bundle" +$PYTHON setup.py install diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml new file mode 100644 index 0000000..05e25e0 --- /dev/null +++ b/conda.recipe/meta.yaml @@ -0,0 +1,29 @@ +package: + name: glmnet + version: "1.0.0" + +source: + fn: glmnet-1.0.0.tar.gz + url: https://files.pythonhosted.org/packages/38/53/89c9eb398f4686efef8be30251018f183715193e7635d859130fd39f0891/glmnet-1.0.0.tar.gz + md5: 4348ad6532b83c6e0477e96c7fbe87bb + +requirements: + build: + - setuptools + - numpy x.x + - scikit-learn >=0.17.0 + - scipy >=0.14.1 + + run: + - numpy x.x + - scikit-learn >=0.17.0 + - scipy >=0.14.1 + +test: + imports: + - glmnet + +about: + home: https://github.com/civisanalytics/python-glmnet + license: GNU General Public License v2 (GPLv2) + summary: 'Python wrapper for glmnet'