From 2ee66e4c1dcda63c53abaa810ee67a3152fd9a7b Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Mon, 14 Mar 2016 08:36:50 -0400 Subject: [PATCH] BLD: Bumped numexpr version and added conda recipe --- appveyor.yml | 3 ++- conda/numexpr/bld.bat | 8 ++++++++ conda/numexpr/build.sh | 9 +++++++++ conda/numexpr/meta.yaml | 22 ++++++++++++++++++++++ etc/requirements.txt | 2 +- 5 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 conda/numexpr/bld.bat create mode 100644 conda/numexpr/build.sh create mode 100644 conda/numexpr/meta.yaml diff --git a/appveyor.yml b/appveyor.yml index bf2841a1..ab217abe 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -105,10 +105,11 @@ install: - cmd: '%CMD_IN_ENV% conda build conda/bcolz --python=%CONDA_PY% --numpy=%CONDA_NPY% --skip-existing -c quantopian' - cmd: '%CMD_IN_ENV% conda build conda/cyordereddict --python=%CONDA_PY% --numpy=%CONDA_NPY% --skip-existing -c quantopian' - cmd: '%CMD_IN_ENV% conda build conda/logbook --python=%CONDA_PY% --numpy=%CONDA_NPY% --skip-existing -c quantopian' + - cmd: '%CMD_IN_ENV% conda build conda/numexpr --python=%CONDA_PY% --numpy=%CONDA_NPY% --skip-existing -c quantopian' - cmd: '%CMD_IN_ENV% conda build conda/ta-lib --python=%CONDA_PY% --numpy=%CONDA_NPY% --skip-existing -c quantopian' - cmd: '%CMD_IN_ENV% conda build conda/zipline --python=%CONDA_PY% --numpy=%CONDA_NPY% -c quantopian' - - cmd: conda create -n testenv --yes --use-local pip python=%PYTHON_VERSION% numpy=%NUMPY_VERSION% scipy=%SCIPY_VERSION% ta-lib=0.4.9 bcolz=0.12.1 + - cmd: conda create -n testenv --yes --use-local pip python=%PYTHON_VERSION% numpy=%NUMPY_VERSION% scipy=%SCIPY_VERSION% ta-lib=0.4.9 bcolz=0.12.1 numexpr=2.4.6 - cmd: activate testenv - cmd: pip install -r etc/requirements.txt - cmd: pip install -r etc/requirements_dev.txt diff --git a/conda/numexpr/bld.bat b/conda/numexpr/bld.bat new file mode 100644 index 00000000..87b1481d --- /dev/null +++ b/conda/numexpr/bld.bat @@ -0,0 +1,8 @@ +"%PYTHON%" setup.py install +if errorlevel 1 exit 1 + +:: Add more build steps here, if they are necessary. + +:: See +:: http://docs.continuum.io/conda/build.html +:: for a list of environment variables that are set during the build process. diff --git a/conda/numexpr/build.sh b/conda/numexpr/build.sh new file mode 100644 index 00000000..4d7fc032 --- /dev/null +++ b/conda/numexpr/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +$PYTHON setup.py install + +# Add more build steps here, if they are necessary. + +# See +# http://docs.continuum.io/conda/build.html +# for a list of environment variables that are set during the build process. diff --git a/conda/numexpr/meta.yaml b/conda/numexpr/meta.yaml new file mode 100644 index 00000000..f712ab3c --- /dev/null +++ b/conda/numexpr/meta.yaml @@ -0,0 +1,22 @@ +package: + name: numexpr + version: "2.4.6" + +source: + fn: numexpr-2.4.6.tar.gz + url: https://pypi.python.org/packages/source/n/numexpr/numexpr-2.4.6.tar.gz + md5: 17ac6fafc9ea1ce3eb970b9abccb4fbd + +requirements: + build: + - python + - numpy x.x + + run: + - python + - numpy x.x + +test: + # Python imports + imports: + - numexpr diff --git a/etc/requirements.txt b/etc/requirements.txt index cdfbb839..60342568 100644 --- a/etc/requirements.txt +++ b/etc/requirements.txt @@ -41,7 +41,7 @@ decorator==4.0.0 networkx==1.9.1 # NumericalExpression pipeline terms. -numexpr==2.4.3 +numexpr==2.4.6 # On disk storage format for pipeline data. bcolz==0.12.1