mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 00:42:58 +02:00
python-matplotlib: set default backend back to agg
This commit is contained in:
parent
4910ee6ef9
commit
7ecaaaeabe
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-matplotlib'
|
# Template file for 'python-matplotlib'
|
||||||
pkgname=python-matplotlib
|
pkgname=python-matplotlib
|
||||||
version=1.5.1
|
version=1.5.1
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="matplotlib-${version}"
|
wrksrc="matplotlib-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
python_versions="2.7 3.4"
|
||||||
|
@ -28,12 +28,12 @@ checksum=3ab8d968eac602145642d0db63dd8d67c85e9a5444ce0e2ecb2a8fedc7224d40
|
||||||
export XDG_RUNTIME_DIR=/tmp
|
export XDG_RUNTIME_DIR=/tmp
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
# set TkAgg as default backend
|
# set Agg as default backend
|
||||||
cat > setup.cfg <<-EOF
|
cat > setup.cfg <<-EOF
|
||||||
[packages]
|
[packages]
|
||||||
tests = False
|
tests = False
|
||||||
[rc_options]
|
[rc_options]
|
||||||
backend = TkAgg
|
backend = Agg
|
||||||
EOF
|
EOF
|
||||||
# remove shebangs
|
# remove shebangs
|
||||||
find . -type f -name '*.py' -exec sed -i "s,^#!.*python$,," {} +
|
find . -type f -name '*.py' -exec sed -i "s,^#!.*python$,," {} +
|
||||||
|
|
Loading…
Add table
Reference in a new issue