Skip to content

Commit

Permalink
Track versions directly in conda and unify versions
Browse files Browse the repository at this point in the history
  • Loading branch information
loganharbour committed Feb 20, 2025
1 parent 7763735 commit 3ddf007
Show file tree
Hide file tree
Showing 25 changed files with 2,402 additions and 870 deletions.
20 changes: 20 additions & 0 deletions conda/libmesh-vtk/conda_build_config.yaml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
mpi:
- mpich
- openmpi

moose_mpi:
- moose-mpi __VERSIONER_MPI_VERSION__

#### Darwin SDK SYSROOT
CONDA_BUILD_SYSROOT: # [osx]
- /opt/MacOSX11.3.sdk # [osx]

macos_min_version: # [osx]
- 11.3 # [osx]

macos_machine: # [osx]
- x86_64-apple-darwin13.4.0 # [not arm64 and osx]
- arm64-apple-darwin20.0.0 # [arm64]

MACOSX_DEPLOYMENT_TARGET: # [osx]
- 11.3 # [osx]
58 changes: 58 additions & 0 deletions conda/libmesh-vtk/meta.yaml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Making a Change to this package?
# REMEMBER TO UPDATE the .yaml files for the following packages:
# libmesh/*
#
# As well as any directions pertaining to modifying those files.
{% set build = __VERSIONER_LIBMESH_VTK_BUILD_NUMBER__ %}
{% set vtk_version = "__VERSIONER_LIBMESH_VTK_VERSION__" %}
{% set vtk_friendly_version = "9.3" %}
{% set sha256 = "fdc7b9295225b34e4fdddc49cd06e66e94260cb00efee456e0f66568c9681be9" %}

package:
name: moose-libmesh-vtk
version: {{ vtk_version }}

source:
- url: https://www.vtk.org/files/release/{{ vtk_friendly_version }}/VTK-{{ vtk_version }}.tar.gz
- vtk_friendly_version: {{ vtk_friendly_version }}
- sha256: {{ sha256 }}
- path: ../functions/retry_build.sh

build:
number: {{ build }}
string: {{ mpi }}_{{ build }}
skip: true # [win]
script_env:
- MOOSE_JOBS
- vtk_friendly_version={{ vtk_friendly_version }}
- REQUESTS_CA_BUNDLE
- SSL_CERT_FILE
- CURL_CA_BUNDLE

requirements:
build:
- {{ mpi }}
- {{ moose_mpi }}
- ninja
run:
- {{ mpi }}
- {{ moose_mpi }}

test:
commands:
- test -f $PREFIX/libmesh-vtk/lib/libvtkCommonCore-{{ vtk_friendly_version }}.dylib # [osx]
- test -f $PREFIX/libmesh-vtk/lib/libvtkCommonCore-{{ vtk_friendly_version }}.so # [linux]

about:
home: http://www.vtk.org/
license: BSD 3-Clause
license_file: Copyright.txt
summary: >
The Visualization Toolkit (VTK) is an open-source, freely available software
system for 3D computer graphics, modeling, image processing, volume
rendering, scientific visualization, and information visualization.

extra:
recipe-maintainers:
- milljm
- cticenhour
30 changes: 30 additions & 0 deletions conda/libmesh/conda_build_config.yaml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
mpi:
- mpich
- openmpi

moose_petsc:
- moose-petsc __VERSIONER_PETSC_VERSION__ mpich___VERSIONER_PETSC_BUILD_NUMBER__
- moose-petsc __VERSIONER_PETSC_VERSION__ openmpi___VERSIONER_PETSC_BUILD_NUMBER__

moose_libmesh_vtk:
- moose-libmesh-vtk __VERSIONER_LIBMESH_VTK_VERSION__ mpich___VERSIONER_LIBMESH_VTK_BUILD_NUMBER__
- moose-libmesh-vtk __VERSIONER_LIBMESH_VTK_VERSION__ openmpi___VERSIONER_LIBMESH_VTK_BUILD_NUMBER__

zip_keys:
- mpi
- moose_petsc
- moose_libmesh_vtk

#### Darwin SDK SYSROOT
CONDA_BUILD_SYSROOT: # [osx]
- /opt/MacOSX11.3.sdk # [osx]

macos_min_version: # [osx]
- 11.3 # [osx]

macos_machine: # [osx]
- x86_64-apple-darwin13.4.0 # [not arm64 and osx]
- arm64-apple-darwin20.0.0 # [arm64]

MACOSX_DEPLOYMENT_TARGET: # [osx]
- 11.3 # [osx]
61 changes: 61 additions & 0 deletions conda/libmesh/meta.yaml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Making a Change to this package?
# REMEMBER TO UPDATE the .yaml files for the following packages:
# moose-dev/*
#
# As well as any directions pertaining to modifying those files.
# ALSO: Follow the directions in scripts/tests/versioner_hashes.yaml
{% set build = __VERSIONER_LIBMESH_BUILD_NUMBER__ %}
{% set version = "__VERSIONER_LIBMESH_VERSION__" %}

package:
name: moose-libmesh
version: {{ version }}

source:
- path: ../../libmesh
- path: ../../scripts/configure_libmesh.sh
- path: ../functions/retry_build.sh

build:
number: {{ build }}
string: {{ mpi }}_{{ build }}
skip: true # [win]
script_env:
- MOOSE_JOBS
- REQUESTS_CA_BUNDLE
- SSL_CERT_FILE

requirements:
build:
- {{ moose_petsc }}
- {{ moose_libmesh_vtk }}
- pkg-config
- libpng
- zlib
run:
- {{ mpi }}
- {{ moose_petsc }}
- {{ moose_libmesh_vtk }}
- pkg-config
- packaging

test:
commands:
- test -f $PREFIX/libmesh/lib/libmesh_opt.dylib # [osx]
- test -f $PREFIX/libmesh/lib/libmesh_opt.so # [linux]
- test -f $PREFIX/libmesh/lib/libmetaphysicl.dylib # [osx]
- test -f $PREFIX/libmesh/lib/libmetaphysicl.so # [linux]
- test -f $PREFIX/libmesh/lib/libtimpi_opt.dylib # [osx]
- test -f $PREFIX/libmesh/lib/libtimpi_opt.so # [linux]

about:
home: http://libmesh.github.io/
license: LGPL
summary: >
The libMesh library provides a framework for the numerical simulation of partial differential
equations using arbitrary unstructured discretizations on serial and parallel platforms

extra:
recipe-maintainers:
- milljm
- cticenhour
20 changes: 20 additions & 0 deletions conda/moose-dev/conda_build_config.yaml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
mpi:
- mpich
- openmpi

moose_libmesh:
- moose-libmesh __VERSIONER_LIBMESH_VERSION__ mpich___VERSIONER_LIBMESH_BUILD_NUMBER__
- moose-libmesh __VERSIONER_LIBMESH_VERSION__ openmpi___VERSIONER_LIBMESH_BUILD_NUMBER__

moose_wasp:
- moose-wasp __VERSIONER_WASP_VERSION__

moose_tools:
- moose-tools __VERSIONER_TOOLS_VERSION__

moose_peacock:
- moose-peacock __VERSIONER_PEACOCK_VERSION__

zip_keys:
- mpi
- moose_libmesh
39 changes: 39 additions & 0 deletions conda/moose-dev/meta.yaml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Making a Change to this package?
# REMEMBER TO UPDATE the .yaml files for the following packages:
# moose/conda_build_config.yaml
# As well as any directions pertaining to modifying those files.
{% set version = "__VERSIONER_MOOSE_DEV_VERSION__" %}

package:
name: moose-dev
version: {{ version }}

source:
path: ../moose-dev

build:
number: 0
string: {{ mpi }}
skip: true # [win]
script_env:
- REQUESTS_CA_BUNDLE
- SSL_CERT_FILE
requirements:
run:
- {{ mpi }}
- {{ moose_tools }}
- {{ moose_libmesh }}
- {{ moose_wasp }}
- {{ moose_peacock }}

about:
home: https://mooseframework.org/
license: LGPL 2.1
summary: >
A simple package which installs all necessary Conda packages for MOOSE based development.

extra:
recipe-maintainers:
- milljm
- cticenhour
- loganharbour
20 changes: 20 additions & 0 deletions conda/moose/conda_build_config.yaml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
mpi:
- mpich
- openmpi

moose_dev:
- moose-dev __VERSIONER_MOOSE_DEV_VERSION__

#### Darwin SDK SYSROOT
CONDA_BUILD_SYSROOT: # [osx]
- /opt/MacOSX11.3.sdk # [osx]

macos_min_version: # [osx]
- 11.3 # [osx]

macos_machine: # [osx]
- x86_64-apple-darwin13.4.0 # [not arm64 and osx]
- arm64-apple-darwin20.0.0 # [arm64]

MACOSX_DEPLOYMENT_TARGET: # [osx]
- 11.3 # [osx]
Loading

0 comments on commit 3ddf007

Please sign in to comment.