25 |
|
chmod +x no-pkg-config/pkg-config |
26 |
|
|
27 |
|
%build |
28 |
+ |
export MPLCONFIGDIR=$PWD/no-pkg-config |
29 |
|
PATH=$PWD/no-pkg-config:$PATH \ |
30 |
|
python setup.py build |
31 |
|
|
32 |
|
%install |
33 |
|
python -c 'import numpy' |
34 |
|
PATH=$PWD/no-pkg-config:$PATH \ |
35 |
+ |
# Notice that the install procedure will try to write in $HOME/.matplotlib by |
36 |
+ |
# default!!! This should work around the problem and have it write config |
37 |
+ |
# in a scratch area. |
38 |
+ |
export MPLCONFIGDIR=$PWD/no-pkg-config |
39 |
+ |
|
40 |
|
python setup.py install --prefix=%i |
41 |
|
find %i -name '*.egg-info' -exec rm {} \; |
42 |
|
|