Skip to content

Commit 7047ac8

Browse files
committedAug 6, 2020
Add template for conda packaging
1 parent eb68c32 commit 7047ac8

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed
 

‎packaging/conda/build.sh

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
mkdir build
4+
cd build
5+
6+
# Openmpi Specific environment setup - Cf. https://github.com/conda-forge/libnetcdf-feedstock/pull/80
7+
export OMPI_MCA_btl=self,tcp
8+
export OMPI_MCA_plm=isolated
9+
export OMPI_MCA_rmaps_base_oversubscribe=yes
10+
export OMPI_MCA_btl_vader_single_copy_mechanism=none
11+
mpiexec="mpiexec --allow-run-as-root"
12+
13+
source $PREFIX/share/triqsvars.sh
14+
15+
cmake \
16+
-DCMAKE_INSTALL_PREFIX=$PREFIX \
17+
-DCMAKE_BUILD_TYPE=Release \
18+
..
19+
20+
make -j${CPU_COUNT} VERBOSE=1
21+
CTEST_OUTPUT_ON_FAILURE=1 ctest
22+
make install
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mpi:
2+
- mpich
3+
- openmpi

‎packaging/conda/meta.yaml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{% set version = "3.0.0" %}
2+
3+
package:
4+
name: app4triqs
5+
version: {{ version }}
6+
7+
source:
8+
url: https://github.com/TRIQS/app4triqs/releases/download/{{ version }}/app4triqs-{{ version }}.tar.gz
9+
sha256: PUT HERE THE SHA256 OF YOUR RELEASE TARBALL
10+
11+
build:
12+
number: 0
13+
skip: True # [win or py<30]
14+
15+
requirements:
16+
build:
17+
- cmake
18+
- make
19+
- {{ compiler('c') }}
20+
- {{ compiler('cxx') }}
21+
host:
22+
- triqs {{ '.'.join(version.split('.')[:2]) }}
23+
- boost-cpp
24+
- hdf5
25+
- {{ mpi }}
26+
- libblas
27+
- liblapack
28+
- python
29+
run:
30+
- {{ pin_compatible("triqs", max_pin="x.x") }}
31+
- boost-cpp
32+
- hdf5
33+
- {{ mpi }}
34+
- libblas
35+
- liblapack
36+
- python
37+
38+
test:
39+
commands:
40+
- export OMPI_MCA_btl=self,tcp
41+
- export OMPI_MCA_plm=isolated
42+
- export OMPI_MCA_rmaps_base_oversubscribe=yes
43+
- export OMPI_MCA_btl_vader_single_copy_mechanism=none
44+
- export mpiexec="mpiexec --allow-run-as-root"
45+
- python -c "import app4triqs"
46+
47+
about:
48+
home: https://triqs.github.io/app4triqs
49+
license: GPL-3.0-or-later
50+
license_family: GPL
51+
license_file: LICENSE.txt
52+
summary: 'An application based on the TRIQS library'
53+
54+
extra:
55+
recipe-maintainers:
56+
- wentzell
57+
- pgunn

0 commit comments

Comments
 (0)
Please sign in to comment.