python packages: Fix errors.
This commit is contained in:
@@ -35,40 +35,40 @@ prepare() {
|
||||
sed -i 's/setupext\.BackendCairo/#setupext\.BackendCairo/g' setup.py
|
||||
|
||||
cd ${srcdir}/$_realname-py2-$pkgver
|
||||
sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
|
||||
sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/env python2|" \
|
||||
-e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
|
||||
-e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
|
||||
-i $(find . -name '*.py')
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/$_realname-py3-$pkgver
|
||||
|
||||
# can not find freetype2 in a clean way
|
||||
if [ -d /mingw64/include/freetype2 ]; then
|
||||
cp -a /mingw64/include/freetype2/* extern/
|
||||
fi
|
||||
|
||||
if [ -d /mingw32/include/freetype2 ]; then
|
||||
cp -a /mingw32/include/freetype2/* extern/
|
||||
fi
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
${MINGW_PREFIX}/bin/python3 setup.py build
|
||||
|
||||
cd ${srcdir}/$_realname-py2-$pkgver
|
||||
|
||||
# can not find freetype2 in a clean way
|
||||
if [ -d /mingw64/include/freetype2 ]; then
|
||||
cp -a /mingw64/include/freetype2/* extern/
|
||||
fi
|
||||
|
||||
if [ -d /mingw32/include/freetype2 ]; then
|
||||
cp -a /mingw32/include/freetype2/* extern/
|
||||
fi
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
${MINGW_PREFIX}/bin/python2 setup.py build
|
||||
cd ${srcdir}/$_realname-py3-$pkgver
|
||||
|
||||
# can not find freetype2 in a clean way
|
||||
# if [ -d /mingw64/include/freetype2 ]; then
|
||||
# cp -a /mingw64/include/freetype2/* extern/
|
||||
# fi
|
||||
|
||||
# if [ -d /mingw32/include/freetype2 ]; then
|
||||
# cp -a /mingw32/include/freetype2/* extern/
|
||||
# fi
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
${MINGW_PREFIX}/bin/python3 setup.py build
|
||||
|
||||
cd ${srcdir}/$_realname-py2-$pkgver
|
||||
|
||||
# can not find freetype2 in a clean way
|
||||
# if [ -d /mingw64/include/freetype2 ]; then
|
||||
# cp -a /mingw64/include/freetype2/* extern/
|
||||
# fi
|
||||
|
||||
# if [ -d /mingw32/include/freetype2 ]; then
|
||||
# cp -a /mingw32/include/freetype2/* extern/
|
||||
# fi
|
||||
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
${MINGW_PREFIX}/bin/python2 setup.py build
|
||||
}
|
||||
|
||||
package_python3-matplotlib() {
|
||||
@@ -87,7 +87,7 @@ package_python3-matplotlib() {
|
||||
--root "${pkgdir}" --prefix=${MINGW_PREFIX}
|
||||
|
||||
install -dm755 "${pkgdir}"/usr/share/licenses/python-matplotlib
|
||||
install -m 644 doc/users/license.rst "${pkgdir}"/usr/share/licenses/python-matplotlib
|
||||
install -m 644 doc/users/license.rst "${pkgdir}${MINGW_PREFIX}"/share/licenses/python3-matplotlib
|
||||
}
|
||||
|
||||
package_python2-matplotlib() {
|
||||
@@ -106,7 +106,7 @@ package_python2-matplotlib() {
|
||||
--root "${pkgdir}" --prefix=${MINGW_PREFIX}
|
||||
|
||||
install -dm755 "${pkgdir}"/usr/share/licenses/python-matplotlib
|
||||
install -m 644 doc/users/license.rst "${pkgdir}"/usr/share/licenses/python-matplotlib
|
||||
install -m 644 doc/users/license.rst "${pkgdir}${MINGW_PREFIX}"/share/licenses/python2-matplotlib
|
||||
}
|
||||
|
||||
package_mingw-w64-i686-python2-matplotlib() {
|
||||
|
||||
Reference in New Issue
Block a user