Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-symengine [3.1.73] #1830

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions recipes/recipes_emscripten/python-symengine/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
#!/bin/bash

unset CMAKE_CXX_FLAGS
export CMAKE_CXX_FLAGS=""

export CXXFLAGS="--std=c++17"
export CMAKE_CXX_STANDARD=17

export LDFLAGS="-s MODULARIZE=1 -s LINKABLE=1 -s EXPORT_ALL=1 -s WASM=1 -std=c++14 -s LZ4=1 -s SIDE_MODULE=1 -sWASM_BIGINT"
${PYTHON} -m pip install .



if [[ "$CONDA_BUILD_CROSS_COMPILATION" == "1" ]]; then
sed -i.bak '1s@.*@#!/usr/bin/env python@' $BUILD_PREFIX/bin/cython
sed -i.bak '1s@.*@#!/usr/bin/env python@' $PREFIX/bin/cython
rm $PREFIX/bin/cython.bak
fi


PYTHON_ARGS="-D IGNORE_THIS=1"
for ARG in $CMAKE_ARGS; do
if [[ "$ARG" == "-DCMAKE_"* ]] && [[ "$ARG" != *";"* ]]; then
cmake_arg=$(echo $ARG | cut -d= -f1)
cmake_arg=$(echo $cmake_arg| cut -dD -f2-)
cmake_val=$(echo $ARG | cut -d= -f2-)
PYTHON_ARGS="$PYTHON_ARGS;${cmake_arg}=${cmake_val}"
fi
done

$PYTHON setup.py build_ext --symengine-dir=$PREFIX $PYTHON_ARGS bdist_wheel
$PYTHON -m pip install dist/symengine*.whl
8 changes: 5 additions & 3 deletions recipes/recipes_emscripten/python-symengine/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
context:
version: 0.11.0
version: 0.13.0

package:
name: python-symengine
version: ${{ version }}

source:
sha256: 702fc5e5640e81714eacecf9da03ba1d9cc2f49fc8c4c6154b57d3d7dfacc698
sha256: fa48beb9b8d4574482edf19dc8671d4cb78f53c2511047a0e52bb88fbdeb6d0c
url: https://github.com/symengine/symengine.py/releases/download/v${{ version }}/symengine.py-${{ version }}.tar.gz

build:
Expand All @@ -21,6 +21,7 @@ requirements:
- numpy
- pip
- cmake
- setuptools
host:
- python
- symengine
Expand All @@ -40,6 +41,7 @@ tests:
recipe:
- test_symengine.py


about:
homepage: https://github.com/symengine/symengine.py
license: MIT
Expand All @@ -52,4 +54,4 @@ about:

extra:
recipe-maintainers:
- richardotis
- richardotis
Loading