File: spkg-src

package info (click to toggle)
sagemath 9.5-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 144,264 kB
  • sloc: python: 1,113,444; cpp: 37,499; ansic: 4,606; sh: 4,105; makefile: 1,097; javascript: 326; lisp: 5
file content (28 lines) | stat: -rwxr-xr-x 636 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash


set -e

if [ -z "${SAGE_ROOT}" ]; then
    echo >&2 "This must be run within a Sage shell"
    exit 1
fi


VERSION=2.2.4
pip download --no-deps --no-binary :all: "matplotlib==${VERSION}"
tar xzf "matplotlib-${VERSION}.tar.gz"


# remove test images
rm -rf matplotlib-${VERSION}/lib/matplotlib/tests/baseline_images/*


# repack and cleanup temporary directory
tar cjf "$SAGE_ROOT/upstream/matplotlib-${VERSION}.tar.bz2" matplotlib-${VERSION}
rm -rf matplotlib-${VERSION}*


# update package info
echo "${VERSION}.p0" >"${SAGE_ROOT}/build/pkgs/matplotlib/package-version.txt"
sage --package fix-checksum matplotlib