Use Jinja vars for version only
Also use conda-build compilers on Linux
+{% set version = "2.0.3" %}
+
package:
name: photospline
- version: 2.0.3
+ version: '{{ version }}'
source:
- url: https://github.com/cnweaver/photospline/archive/v2.0.3.tar.gz
+ url: https://github.com/cnweaver/photospline/archive/v{{ version }}.tar.gz
sha256: 7045a631c41489085037b05fac98fd9cad73dc4262b7eead143d09e5f8265dec
build:
@@ -17,6 +19,8 @@ requirements:
- suitesparse
- cfitsio
- cmake >=3.1
+ - {{ compiler('c') }} # [not osx]
+ - {{ compiler('cxx') }} # [not osx]
run:
- {{ pin_compatible('python') }}
- {{ pin_compatible('numpy', lower_bound='1.7') }}
