Skip to content

Commit ee6f3bc

Browse files
authored
Merge pull request #260 from timryanb/adding-M1-conda-build
Fixing conda deployment
2 parents bcbb4a4 + 514ba2e commit ee6f3bc

4 files changed

Lines changed: 22 additions & 32 deletions

File tree

conda/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export F2F_DIR=${SRC_DIR}
55
# platform specific environment variables
66
if [[ $(uname) == Darwin ]]; then
77
export SO_EXT="dylib"
8-
export SO_LINK_FLAGS="-fPIC -dynamiclib"
8+
export SO_LINK_FLAGS="-fPIC -dynamiclib -headerpad_max_install_names"
99
export LIB_SLF="${SO_LINK_FLAGS} -install_name @rpath/libtransfer_schemes.dylib"
1010
export LAPACK_LIBS="-framework accelerate"
1111
elif [[ "$target_platform" == linux-* ]]; then

conda/conda_build_config.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,11 @@ python:
1010
- 3.8
1111
- 3.9
1212
- 3.10
13-
- 3.11
13+
- 3.11
14+
15+
target_platform:
16+
- osx-64 # [osx]
17+
#- osx-arm64 # [osx]
18+
- linux-64 # [linux64]
19+
#- linux-aarch64 # [linux64]
20+
#- linux-ppc64le # [linux64]

conda/meta.yaml

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -27,57 +27,40 @@ source:
2727

2828
build:
2929
number: {{ build }}
30-
skip: true # [py<=36]
30+
skip: true # [py<=37]
3131
string: py{{ CONDA_PY }}_{{ scalar }}_h{{ PKG_HASH }}_{{ build }}
3232
track_features:
3333
- funtofem_complex # [scalar == "complex"]
3434

3535
requirements:
3636
build:
37-
- python {{ python }}
38-
- numpy 1.18 # [py==38]
39-
- numpy 1.19 # [py==39]
40-
- numpy 1.22 # [py==310]
41-
- numpy 1.23 # [py==311]
42-
- {{ mpi }}
43-
- openmpi-mpicxx # [mpi == "openmpi"]
44-
- mpich-mpicxx # [mpi == "mpich"]
45-
- {{ compiler('cxx') }}
46-
- libopenblas
47-
- lapack
37+
- {{compiler('cxx')}}
4838
- make
49-
- mpi4py
50-
- cython >=0.29,<3.0
51-
- setuptools
52-
- tacs >=3.4.0
39+
- python {{ python }} # [build_platform != target_platform]
40+
- cross-python_{{ target_platform }} # [build_platform != target_platform]
41+
- numpy 1.23 # [build_platform != target_platform]
42+
- {{ mpi }} # [build_platform != target_platform]
43+
- mpi4py # [build_platform != target_platform]
44+
- cython >=0.29,<3.0 # [build_platform != target_platform]
45+
- setuptools # [build_platform != target_platform]
46+
- tacs >=3.4.0 # [build_platform != target_platform]
5347

5448
host:
5549
- python {{ python }}
5650
- pip
57-
- numpy 1.18 # [py==38]
58-
- numpy 1.19 # [py==39]
59-
- numpy 1.22 # [py==310]
60-
- numpy 1.23 # [py==311]
51+
- numpy 1.23
6152
- {{ mpi }}
62-
- openmpi-mpicxx # [mpi == "openmpi"]
63-
- mpich-mpicxx # [mpi == "mpich"]
6453
- libopenblas
6554
- lapack
6655
- mpi4py
6756
- cython >=0.29,<3.0
68-
- setuptools
6957
- tacs >=3.4.0
7058

7159
run:
7260
- python
73-
- numpy >=1.18.5,<2.0.a0 # [py==38]
74-
- numpy >=1.19.5,<2.0.a0 # [py==39]
75-
- numpy >=1.22.0,<2.0.a0 # [py==310]
76-
- numpy >=1.23.0,<2.0.a0 # [py==311]
61+
- {{ pin_compatible("numpy") }}
7762
- scipy
7863
- {{ mpi }}
79-
- openmpi-mpicxx # [mpi == "openmpi"]
80-
- mpich-mpicxx # [mpi == "mpich"]
8164
- libopenblas
8265
- lapack
8366
- mpi4py

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def get_mpi_flags():
9292

9393
setup(
9494
name="funtofem",
95-
version="0.3.3",
95+
version="0.3.6",
9696
description="Aerothermoelastic coupling framework and transfer schemes",
9797
author="Graeme J. Kennedy",
9898
author_email="graeme.kennedy@ae.gatech.edu",

0 commit comments

Comments
 (0)