You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
39 lines
1.3 KiB
import 'compile/configure'
|
|
|
|
name=Python
|
|
version=3.5.2
|
|
update_url='https://www.python.org/downloads/'
|
|
|
|
dlextract "https://www.python.org/ftp/python/$version/$name-$version.tar.xz" \
|
|
'8906efbacfcdc7c3c9198aeefafd159e'
|
|
header_end
|
|
|
|
cd "$name-$version"
|
|
|
|
# Don't build the static library
|
|
sed -i -e '/$(BUILDPYTHON):/s/$(LIBRARY)//' \
|
|
-e '/Programs\/_testembed:/s/$(LIBRARY)//' \
|
|
-e '/test -d $(LIBRARY)/c\ @if false; then \\' Makefile.pre.in
|
|
|
|
# Remove windows binaries and scripts
|
|
find Lib \( -name '*.exe' -o -name '*.bat' \) -delete
|
|
|
|
# Fix paths
|
|
sed -i -e "/os.path.join(prefix/s/lib/$(safe_sed "$dir_libdir")/" Lib/site.py
|
|
sed -i -e "s/\/lib\/python/\/$(safe_sed "$dir_libdir")\/python/" \
|
|
-e "s/\/bin/\/$(safe_sed "$dir_bindir")/" Lib/sysconfig.py Lib/distutils/command/install.py
|
|
sed -i -e "/libpython =/!b;n;s/lib/$(safe_sed "$dir_libdir")/" Lib/distutils/sysconfig.py
|
|
sed -i -e "/lib_python =/s/lib\//$(safe_sed "$dir_libdir")\//" Modules/getpath.c
|
|
sed -i -e "/SCRIPTDIR=/s/lib/$(safe_sed "$dir_libdir")/" Makefile.pre.in
|
|
sed -i -e "/LIBPL=/s/lib/$(safe_sed "$dir_libdir")/" configure
|
|
|
|
compile_configure -- \
|
|
--enable-shared \
|
|
--with-threads \
|
|
--with-system-expat \
|
|
--with-system-ffi \
|
|
--with-system-libmpdec \
|
|
--without-ensurepip
|
|
make DESTDIR="$dir_install" maninstall
|
|
|
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:
|
|
|