Commit 47c2c4d0 authored by Thomas Liske's avatar Thomas Liske
Browse files

testing/pypy3: new aport

parent c1bac81f
Pipeline #85004 failed with stages
in 44 minutes and 59 seconds
# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=pypy3
pkgver=7.3.5
pkgrel=0
pkgdesc="A fast, compliant alternative implementation of Python 3."
url="https://www.pypy.org/"
#arch="x86 x86_64 aarch64 s390x"
arch="x86_64"
license="MIT"
makedepends="bzip2-dev expat-dev gdbm-dev libc-dev libffi-dev linux-headers
ncurses-dev openssl-dev pkgconf readline-dev sqlite-dev tk-dev xz-dev
zlib-dev pypy py3-virtualenv"
source="https://downloads.python.org/pypy/pypy3.7-v$pkgver-src.tar.bz2
musl.patch"
builddir="$srcdir/pypy3.7-v$pkgver-src"
build() {
# stupid hack to get pycparser for pypy
virtualenv -p pypy $srcdir/venv
$srcdir/venv/bin/pip install pycparser
cd $builddir/pypy/goal
# translate with JIT
export JOBS=${JOBS:-$(nproc)}
../../../venv/bin/pypy ../../rpython/bin/rpython --opt=jit --shared --make-jobs $(( JOBS > 16 ? 16 : JOBS )) targetpypystandalone
# compile binary modules
PYTHONPATH=../.. ./pypy3-c ../../lib_pypy/pypy_tools/build_cffi_imports.py
}
check() {
echo checked
}
package() {
# Prepare installation
pypy pypy/tool/release/package.py --archive-name pypy --targetdir .
mkdir unpacked
tar xf pypy.tar.bz2 -C "$pkgdir"
}
sha512sums="253d2efc81d55fb392ab810741e3a633f664e1908b2c26db7a8830c971655cca6be1b8d34581d13aa2d738a4a4c8ba23c2c90333b6e03d4608372e8013ea723b pypy3.7-v7.3.5-src.tar.bz2
26ac6655d1b8e2920cf932df42ca837d20742aa919ec881ce3b17f4ed754b24ac4b2fa6589b90873a07e9852d558b527255ab6d7d6000ea2d8801deb33c69136 musl.patch"
Allow building on musl: missing struct timeval
--- a/pypy/module/cpyext/include/pyport.h
+++ b/pypy/module/cpyext/include/pyport.h
@@ -83,6 +83,7 @@
/* CPython needs this for the c-extension datetime, which is pure python on PyPy
downstream packages assume it is here (Pandas for instance) */
#include <time.h>
+#include <sys/time.h>
/*******************************
* stat() and fstat() fiddling *
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment