Skip to content

Commit

Permalink
Update conda to fix errors in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pradal committed Feb 5, 2024
1 parent 9350a12 commit 1db6dd8
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 9 deletions.
44 changes: 44 additions & 0 deletions conda/conda_build_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# from conda-forge-pinning
c_compiler:
- gcc # [linux]
- clang # [osx]
- vs2019 # [win and x86_64]
- vs2022 # [win and arm64]
c_compiler_version: # [unix]
- 12 # [linux]
- 16 # [osx]
- 10 # [os.environ.get("CF_CUDA_ENABLED", "False") == "True" and linux]
- 11 # [os.environ.get("CF_CUDA_ENABLED", "False") == "True" and linux]
cxx_compiler:
- gxx # [linux]
- clangxx # [osx]
- vs2019 # [win and x86_64]
- vs2022 # [win and arm64]
cxx_compiler_version: # [unix]
- 12 # [linux]
- 16 # [osx]
- 10 # [os.environ.get("CF_CUDA_ENABLED", "False") == "True" and linux]
- 11 # [os.environ.get("CF_CUDA_ENABLED", "False") == "True" and linux]
m2w64_c_compiler: # [win]
- m2w64-toolchain # [win]
m2w64_cxx_compiler: # [win]
- m2w64-toolchain # [win]
# from conda-forge-pinning
c_compiler:
- gcc # [linux]
- clang # [osx]
- m2w64-toolchain # [win]
c_compiler_version: # [unix]
- 12 # [linux]
- 16 # [osx]
- 10 # [os.environ.get("CF_CUDA_ENABLED", "False") == "True" and linux]
- 11 # [os.environ.get("CF_CUDA_ENABLED", "False") == "True" and linux]
cxx_compiler:
- gxx # [linux]
- clangxx # [osx]
- m2w64-toolchain # [win]
cxx_compiler_version: # [unix]
- 12 # [linux]
- 16 # [osx]
- 10 # [os.environ.get("CF_CUDA_ENABLED", "False") == "True" and linux]
- 11 # [os.environ.get("CF_CUDA_ENABLED", "False") == "True" and linux]
21 changes: 12 additions & 9 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% set native = 'm2w64-' if win else '' %}

package:
name: openalea.phenomenal
version: "1.9.2"
Expand All @@ -10,24 +12,25 @@ build:
preserve_egg_dir: True
string: phenomenal
script:
- {{ PYTHON }} setup.py install #--single-version-externally-managed --record record.txt
- script: pip install .

requirements:
host:
- python x.x
- setuptools
- cython
- numpy
- scipy

build:
- {{ compiler('c') }}
- {{ compiler("cxx") }}
- {{ compiler('c') }} # [unix]
- {{ compiler("cxx") }} # [unix]
- m2w64-toolchain # [win]
- python
- setuptools
- numpy
- cython

host:
- python
- setuptools
- cython
- numpy
- scipy

run:
- python
Expand Down

0 comments on commit 1db6dd8

Please sign in to comment.