Copy requirements from r-stan
{% set name = "cmdstan" %}
{% set version = "2.27.0" %}
+{% set posix = 'm2-' if win else '' %}
+{% set native = 'm2w64-' if win else '' %}
package:
name: {{ name|lower }}
@@ -12,7 +14,10 @@ source:
build:
number: 0
script:
- # I also
+ - g++ --version
+ - make --version
+ - make print-OS
+ - make print-CXX
- python -c "from cmdstanpy.install_cmdstan import *; install_version('.', verbose=True)"
- mv ./bin "${PREFIX}" # [not win]
- copy bin %PREFIX% # [win]
@@ -21,13 +26,27 @@ build:
requirements:
build:
- - {{ compiler('gxx') }} # [not win]
- - {{ compiler('m2w64_gxx') }} # [win]
+ - {{ compiler('c') }} # [not win]
+ - {{ compiler('m2w64_c') }} # [win]
+ - {{ compiler('cxx') }} # [not win]
+ - {{ compiler('m2w64_cxx') }} # [win]
+ - {{ posix }}filesystem # [win]
+ - {{ posix }}make
+ - {{ posix }}sed # [win]
+ - {{ posix }}coreutils # [win]
+ - {{ posix }}zip # [win]
# This is contains the Python build script
- cmdstanpy
run:
- - {{ compiler('gxx') }} # [not win]
- - {{ compiler('m2w64_gxx') }} # [win]
+ - {{ compiler('c') }} # [not win]
+ - {{ compiler('m2w64_c') }} # [win]
+ - {{ compiler('cxx') }} # [not win]
+ - {{ compiler('m2w64_cxx') }} # [win]
+ - {{ posix }}filesystem # [win]
+ - {{ posix }}make
+ - {{ posix }}sed # [win]
+ - {{ posix }}coreutils # [win]
+ - {{ posix }}zip # [win]
# Included here for troubleshooting to keep run/build as similar as possible.
- cmdstanpy
