-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add qhull and update matplotlib (#1205)
- Loading branch information
Showing
9 changed files
with
123 additions
and
801 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
# Set up the cross file | ||
# Note: the include folder is moved to `$BUILD_PREFIX` by the cross-python activation script | ||
export NUMPY_INCLUDE_DIR="$BUILD_PREFIX/lib/python${PY_VER}/site-packages/numpy/core/include" | ||
|
||
# write out the cross file | ||
sed "s|@(NUMPY_INCLUDE_DIR)|${NUMPY_INCLUDE_DIR}|g" $RECIPE_DIR/emscripten.meson.cross > $SRC_DIR/emscripten.meson.cross.temp | ||
sed "s|@(PYTHON)|${PYTHON}|g" $SRC_DIR/emscripten.meson.cross.temp > $SRC_DIR/emscripten.meson.cross | ||
rm $SRC_DIR/emscripten.meson.cross.temp | ||
|
||
cat $SRC_DIR/emscripten.meson.cross | ||
|
||
export CFLAGS="$CFLAGS -sWASM_BIGINT" | ||
export CXXFLAGS="$CXXFLAGS -sWASM_BIGINT" | ||
export LDFLAGS="$LDFLAGS -sWASM_BIGINT" | ||
|
||
${PYTHON} -m pip install . -vvv --no-deps --no-build-isolation \ | ||
-Csetup-args="--cross-file=$SRC_DIR/emscripten.meson.cross" \ | ||
-Csetup-args="-Dsystem-freetype=true" \ | ||
-Csetup-args="-Dsystem-qhull=true" \ | ||
-Csetup-args="-Dmacosx=false" | ||
|
||
export MATPLOTLIB_LOCATION=$PREFIX/lib/python$PY_VER/site-packages/matplotlib | ||
|
||
# Pre-built font cache | ||
cp $RECIPE_DIR/src/fontlist.json $MATPLOTLIB_LOCATION/ | ||
cp $RECIPE_DIR/src/Humor-Sans-1.0.ttf $MATPLOTLIB_LOCATION/mpl-data/fonts/ttf/Humor-Sans.ttf | ||
|
||
# Save space by removing unneeded code | ||
rm -rf $MATPLOTLIB_LOCATION/backends/qt_editor | ||
rm -rf $MATPLOTLIB_LOCATION/backends/web_backend | ||
rm -rf $MATPLOTLIB_LOCATION/sphinxext |
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
recipes/recipes_emscripten/matplotlib/emscripten.meson.cross
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[properties] | ||
needs_exe_wrapper = true | ||
skip_sanity_check = true | ||
longdouble_format = 'IEEE_QUAD_LE' # for numpy | ||
numpy-include-dir = '@(NUMPY_INCLUDE_DIR)' | ||
|
||
[host_machine] | ||
system = 'emscripten' | ||
cpu_family = 'wasm32' | ||
cpu = 'wasm' | ||
endian = 'little' | ||
|
||
[binaries] | ||
exe_wrapper = 'node' | ||
pkg-config = 'pkg-config' | ||
python = '@(PYTHON)' |
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
recipes/recipes_emscripten/matplotlib/patches/disable_macosx_backend.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.