question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make explicit the minimum numpy version 1.11

See original GitHub issue

Having numpy 1.10.* as build requirement causes to not generate any build at all.

Conda-smithy has explicitly numpy>=1.11 as requirement and skips any incompatible build. See https://github.com/conda-forge/conda-smithy/blob/master/conda_smithy/configure_feedstock.py#L640

It would be good to have a warning or something that tells that the build matrix couldn’t be generated due to incompatible dependencies.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rmaxcommented, Oct 18, 2017

@isuruf pointed out the missing numpy >=1.10 run requirement.

After fixing that this the rerender changes:

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 1b48f15..129213c 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,11 +1,10 @@
 version: 2
 
 jobs:
-  build__CONDA_NPY_111__CONDA_PY_27:
+  build__CONDA_PY_27:
     working_directory: ~/test
     machine: true
     environment:
-      - CONDA_NPY: "111"
       - CONDA_PY: "27"
     steps:
       - checkout
@@ -19,16 +18,14 @@ jobs:
       - run:
           name: Print conda-build environment variables
           command: |
-            echo "CONDA_NPY=${CONDA_NPY}"
             echo "CONDA_PY=${CONDA_PY}"
       - run:
           # Run, test and (if we have a BINSTAR_TOKEN) upload the distributions.
           command: ./ci_support/run_docker_build.sh
-  build__CONDA_NPY_111__CONDA_PY_35:
+  build__CONDA_PY_35:
     working_directory: ~/test
     machine: true
     environment:
-      - CONDA_NPY: "111"
       - CONDA_PY: "35"
     steps:
       - checkout
@@ -42,16 +39,14 @@ jobs:
       - run:
           name: Print conda-build environment variables
           command: |
-            echo "CONDA_NPY=${CONDA_NPY}"
             echo "CONDA_PY=${CONDA_PY}"
       - run:
           # Run, test and (if we have a BINSTAR_TOKEN) upload the distributions.
           command: ./ci_support/run_docker_build.sh
-  build__CONDA_NPY_111__CONDA_PY_36:
+  build__CONDA_PY_36:
     working_directory: ~/test
     machine: true
     environment:
-      - CONDA_NPY: "111"
       - CONDA_PY: "36"
     steps:
       - checkout
@@ -65,7 +60,6 @@ jobs:
       - run:
           name: Print conda-build environment variables
           command: |
-            echo "CONDA_NPY=${CONDA_NPY}"
             echo "CONDA_PY=${CONDA_PY}"
       - run:
           # Run, test and (if we have a BINSTAR_TOKEN) upload the distributions.
@@ -75,6 +69,6 @@ workflows:
   version: 2
   build_and_test:
     jobs:
-      - build__CONDA_NPY_111__CONDA_PY_27
-      - build__CONDA_NPY_111__CONDA_PY_35
-      - build__CONDA_NPY_111__CONDA_PY_36
+      - build__CONDA_PY_27
+      - build__CONDA_PY_35
+      - build__CONDA_PY_36
diff --git a/.travis.yml b/.travis.yml
index eebbc78..5eeaf54 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,9 +9,9 @@ osx_image: xcode6.4
 env:
   matrix:
     
-    - CONDA_NPY=111  CONDA_PY=27
-    - CONDA_NPY=111  CONDA_PY=35
-    - CONDA_NPY=111  CONDA_PY=36
+    - CONDA_PY=27
+    - CONDA_PY=35
+    - CONDA_PY=36
   global:
     # The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml.
     - secure: "TY2ekWWB7zyRLz0bfQ5NISTaIgkfB0xtvlewWAa8JfatZkSQyHGgU1Nl8gyIxZkNSklVy9Dv3sOrBMbeVU+7luufc0OKBQOgqkJfenCk88ySyTzFzpX9O8jNnVkseL4xiWjcPCvJ0aQk/jD7iqttalbFuw9V8YjD5sbI0rps8TWnbIZ+Wna3fmSVvXuahTEJCqMhpZRvlZDfxqO21aF6Fqlnur+DvCjGP0nFgngK/OkwNlyEmqwSQpldL3l/SUz6aVmMSDHA1Za9ljlAXmCnTYdWYCKi1dc2LtFpnU93Bc1qJR9IDIBHVXvbjkNiqUBVAvVNcun8dGmMcnD7sjw29LHjxvfkKyGIW2PJfgCxZi1ff2htTRCF/gIjIaLeuwr6aEC+Ss37t7WHZhfCQZkwpcbs8gA84N/yq2i6RoCQLBsDwtMDcZRaa5Wdqb0qF9y965JmnTRjFVTaorBz9tmWGOi0NITmy47BvSdlm6Xkuqmcxbim73V1Y4KKamV6JqId9JUAxFeLAKpcxX29L3QjoJY0grUxDWqQDI6kqwS/ph9LDPWnOEO2Ch4VfwHnmvZplnKOGsS+Zp20SBKRDmFsbFt3Ed/SLOQHxLK5OCcQndUe5oqbcX6fr0gNxHivZgx+1MrIrokJVr0TCS0+fknLJJQx5ibV//YZ6XdiIwByGvE="
diff --git a/appveyor.yml b/appveyor.yml
index f9bd738..341c2c2 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -10,32 +10,26 @@ environment:
 
   matrix:
     - TARGET_ARCH: x86
-      CONDA_NPY: 111
       CONDA_PY: 27
       CONDA_INSTALL_LOCN: C:\\Miniconda
 
     - TARGET_ARCH: x64
-      CONDA_NPY: 111
       CONDA_PY: 27
       CONDA_INSTALL_LOCN: C:\\Miniconda-x64
 
     - TARGET_ARCH: x86
-      CONDA_NPY: 111
       CONDA_PY: 35
       CONDA_INSTALL_LOCN: C:\\Miniconda35
 
     - TARGET_ARCH: x64
-      CONDA_NPY: 111
       CONDA_PY: 35
       CONDA_INSTALL_LOCN: C:\\Miniconda35-x64
 
     - TARGET_ARCH: x86
-      CONDA_NPY: 111
       CONDA_PY: 36
       CONDA_INSTALL_LOCN: C:\\Miniconda36
 
     - TARGET_ARCH: x64
-      CONDA_NPY: 111
       CONDA_PY: 36
       CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
 
diff --git a/ci_support/run_docker_build.sh b/ci_support/run_docker_build.sh
index 9a62854..a9dcd59 100755
--- a/ci_support/run_docker_build.sh
+++ b/ci_support/run_docker_build.sh
@@ -40,7 +40,6 @@ cat << EOF | docker run -i \
                         -v "${RECIPE_ROOT}":/recipe_root \
                         -v "${FEEDSTOCK_ROOT}":/feedstock_root \
                         -e HOST_USER_ID="${HOST_USER_ID}" \
-                        -e CONDA_NPY="${CONDA_NPY}" \
                         -e CONDA_PY="${CONDA_PY}" \
                         -a stdin -a stdout -a stderr \
                         condaforge/linux-anvil \

I notice the major change is removing CONDA_NPY=111. Does that means it uses the latest numpy version for the build? I will test it.

0reactions
rmaxcommented, Oct 18, 2017

So, when using as build requirement numpy 1.10.* the build config does not include the CONDA_NPY envvar, however the build uses numpy 1.10.4 as expected.

The bug we had was not including numpy as run requirement.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NumPy 1.11.0 Release Notes
0 Release Notes. This release supports Python 2.6 - 2.7 and 3.2 - 3.5 and contains a number of enhancements and improvements. Note...
Read more >
numpy.ma.min — NumPy v1.11 Manual
This is documentation for an old release of NumPy (version 1.11.0). Read this page Search for ... Return the minimum along a given...
Read more >
vigranumpy 1.11.1 documentation - GitHub Pages
Vigranumpy is based on the popular numpy module and uses its ndarray data structure to represent image and volume data. It introduces the...
Read more >
NumPy 1.24 Release Notes - GitHub
This release supports Python versions 3.8-3.11. ... The single-argument form of np.ma.minimum and np.ma.maximum has ... Deprecated since Numpy 1.11.0.
Read more >
Release Notes — Numba 0.50.1 documentation - PyData |
... supported NumPy version to 1.15 and the minimum supported SciPy version to 1.0. ... Henry Schreiner made the llvmlite requirements more explicit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found