comparison python/python2/python2.sh @ 535:830d949b71a6

python: use new FHS
author David Demelier <markand@malikania.fr>
date Wed, 10 Apr 2019 20:20:00 +0200
parents b3d11a5ed175
children bad483aace64
comparison
equal deleted inserted replaced
534:1214c226dfa0 535:830d949b71a6
49 LDFLAGS="$LDFLAGS" \ 49 LDFLAGS="$LDFLAGS" \
50 LIBS="$LIBS" \ 50 LIBS="$LIBS" \
51 ./configure \ 51 ./configure \
52 --build=$CBUILD \ 52 --build=$CBUILD \
53 --host=$CHOST \ 53 --host=$CHOST \
54 --prefix=/usr \ 54 --prefix=/ \
55 --disable-static \ 55 --disable-static \
56 --enable-shared \ 56 --enable-shared \
57 --with-system-expat \ 57 --with-system-expat \
58 --with-system-ffi \ 58 --with-system-ffi \
59 $with_ipv6 59 $with_ipv6
60 make 60 make
61 make altinstall maninstall DESTDIR=$DESTDIR 61 make altinstall maninstall DESTDIR=$DESTDIR
62 ln -sf python2.7 $DESTDIR/usr/bin/python2 62 ln -sf python2.7 $DESTDIR/bin/python2
63 63
64 # Avoid conflicts with python 3. 64 # Avoid conflicts with python 3.
65 rm -f $DESTDIR/usr/bin/2to3 65 rm -f $DESTDIR/bin/2to3
66 mv $DESTDIR/usr/bin/smtpd.py{,2.7} 66 mv $DESTDIR/bin/smtpd.py{,2.7}
67 mv $DESTDIR/usr/bin/idle{,2.7} 67 mv $DESTDIR/bin/idle{,2.7}
68 mv $DESTDIR/usr/bin/pydoc{,2.7} 68 mv $DESTDIR/bin/pydoc{,2.7}
69 69
70 popd 70 popd
71 rm -rf Python-$PKGVERSION 71 rm -rf Python-$PKGVERSION
72 } 72 }