|
40 | 40 | cairo-1.17.2%2B17%2Bg52a7c79fd-2-x86_64.pkg.tar.xz |
41 | 41 | fontconfig-2%3A2.13.91%2B24%2Bg75eadca-1-x86_64.pkg.tar.xz |
42 | 42 | freetype2-2.10.1-1-x86_64.pkg.tar.xz |
| 43 | + libraqm-0.7.0-1-x86_64.pkg.tar.xz |
43 | 44 | python-cairo-1.18.2-3-x86_64.pkg.tar.xz |
44 | 45 | ) |
45 | 46 | for filename in "${filenames[@]}"; do |
|
51 | 52 | (tar -C "$name" -xf - 2>/dev/null || true) |
52 | 53 | mv "$name/usr/include/"* /usr/include |
53 | 54 | done |
54 | | - # Provide a shim to access pycairo's header. |
| 55 | + # Shim pkg-config. |
| 56 | + echo '#!/bin/sh' >/usr/bin/pkg-config |
| 57 | + chmod a+x /usr/bin/pkg-config |
| 58 | + # Shim access to pycairo's header. |
55 | 59 | mv "$(find python-cairo -name py3cairo.h)" /usr/include |
56 | 60 | ) |
57 | 61 |
|
58 | 62 | for py_ver in $PY_VERS; do |
59 | 63 | py_prefix=("/opt/python/cp${py_ver/./}-"*) |
60 | 64 | tags="$(basename "$py_prefix")" |
61 | 65 | echo "Building the wheel for Python $py_ver." |
62 | | - # Provide a shim to access pycairo's header. |
| 66 | + # Shim access to pycairo's header. |
63 | 67 | echo 'def get_include(): return "/dev/null"' \ |
64 | 68 | >"$py_prefix/lib/python$py_ver/site-packages/cairo.py" |
65 | 69 | ( |
66 | 70 | cd /io/mplcairo |
67 | 71 | # Force a rebuild of the extension. |
68 | | - "$py_prefix/bin/python" setup.py bdist_wheel |
| 72 | + CFLAGS="-static-libgcc -static-libstdc++ -I/usr/include/cairo -I/usr/include/freetype2" \ |
| 73 | + LDFLAGS="-static-libgcc -static-libstdc++" \ |
| 74 | + "$py_prefix/bin/python" setup.py bdist_wheel |
69 | 75 | mplcairo_version="$("$py_prefix/bin/python" setup.py --version)" |
70 | 76 | for wheel in "dist/mplcairo-$mplcairo_version-$tags-"*".whl"; do |
71 | 77 | AUDITWHEEL_PLAT= auditwheel -v repair -wdist "$wheel" |
|
0 commit comments