Skip to content

Commit

Permalink
Update tttrlib to 0.25.1 (bioconda#52127)
Browse files Browse the repository at this point in the history
* Update tttrlib to 0.25.1

* try building on osx py > 310

* build now works on osx py > 3.10, lets now try building on aarch64 and arm64

* sync cmake build commands with those specified in the documentation

---------

Co-authored-by: mencian <[email protected]>
Co-authored-by: Joshua Zhuang <[email protected]>
  • Loading branch information
3 people authored Nov 15, 2024
1 parent 9feedad commit 1b0d178
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion recipes/tttrlib/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mkdir b2 && cd b2

if [[ "${target_platform}" == osx-* ]]; then
# See https://conda-forge.org/docs/maintainer/knowledge_base.html#newer-c-features-with-old-sdk
CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY"
export CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY"
export CONFIG_ARGS="-DCMAKE_FIND_FRAMEWORK=NEVER -DCMAKE_FIND_APPBUNDLE=NEVER"
else
export CONFIG_ARGS=""
Expand All @@ -18,6 +18,9 @@ cmake -S .. -B . \
-DBUILD_LIBRARY=ON \
-DPYTHON_VERSION=$(python -c 'import platform; print(platform.python_version())') \
-DPython_ROOT_DIR="${PREFIX}/bin" \
-DBUILD_PYTHON_DOCS=ON \
-DBoost_USE_STATIC_LIBS=OFF \
-DWITH_AVX=OFF \
-G Ninja \
"${CONFIG_ARGS}"

Expand Down
8 changes: 5 additions & 3 deletions recipes/tttrlib/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{% set name = "tttrlib" %}
{% set version = "0.25.0" %}
{% set version = "0.25.1" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://github.com/Fluorescence-Tools/tttrlib/archive/refs/tags/v{{ version }}.tar.gz
sha256: e15604ef063257cd87d3bdf266c1d5a448189508f51cdc4156a93cb2b46fe807
sha256: a224214e50d7a202ef1d264c64641ab0b26f29bf756a96659489847953b698a6

build:
number: 0
skip: True # [osx and py > 310]
run_exports: '{{ pin_subpackage("tttrlib", max_pin="x.x") }}'

requirements:
Expand Down Expand Up @@ -68,3 +67,6 @@ extra:
recipe-maintainers:
- tpeulen
- khemmen
additional-platforms:
- linux-aarch64
- osx-arm64

0 comments on commit 1b0d178

Please sign in to comment.