python3.7

This commit is contained in:
milisbir 2018-08-13 23:20:09 +03:00
parent 7cec6d24b4
commit b2afc2f7f0
1 changed files with 3 additions and 8 deletions

View File

@ -23,7 +23,7 @@ derle() {
patch -p1 -i ../dont-make-libpython-readonly.patch
# FS#23997
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python3|" Lib/cgi.py
# Ensure that we are using the system copy of various libraries (expat, libffi, and libmpdec),
# rather than copies shipped in the tarball
@ -45,11 +45,6 @@ derle() {
--enable-loadable-sqlite-extensions \
--without-ensurepip
make
export servernum=99
while ! xvfb-run -a -n "$servernum" /bin/true 2>/dev/null; do servernum=$((servernum+1)); done
LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1280x720x24 -ac +extension GLX" -a -n "$servernum" make EXTRA_CFLAGS="$CFLAGS"
sed -i 's/^all:.*$/all: build_all/' Makefile
@ -59,8 +54,8 @@ derle() {
install -m755 Tools/i18n/{msgfmt,pygettext}.py "${PKG}"/usr/lib/python${_pybasever}/Tools/i18n/
install -m755 Tools/scripts/{README,*py} "${PKG}"/usr/lib/python${_pybasever}/Tools/scripts/
# License
install -Dm644 LICENSE "${PKG}/usr/share/licenses/${pkgname}/LICENSE"
# Lisans
install -Dm644 LICENSE "${PKG}/usr/share/licenses/${isim}/LICENSE"
}