Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.80 KB | None | 0 0
  1. [ -e /usr/bin/pypy2 ] &&
  2.     _translator=pypy2 ||
  3.     _translator=python2
  4.  
  5. # translate to C files; write to $srcdir/usession-$pkgname-0
  6. PYPY_USESSION_DIR=$srcdir \
  7. PYPY_USESSION_BASENAME=$pkgname \
  8. $_translator ../../rpython/bin/rpython \
  9.     --shared \
  10.     --batch \
  11.     --make-jobs=1 \
  12.     --source \
  13.     -Ojit \
  14.     targetpypystandalone
  15.  
  16. # '--source' removes the gcc stage (letting the translator exit
  17. # and thus freeing up ~6GB of RAM) leaving the following steps:
  18. _cdir=$srcdir/usession-$pkgname-0/testing_1
  19. make -sj$JOBS -C $_cdir
  20. mv $_cdir/pypy*-c $_cdir/libpypy*-c.so .
  21. ./pypy*-c ../tool/build_cffi_imports.py
  22.  
  23. # use upstream's release script to build *.pyc
  24. cd "$builddir/pypy/tool/release"
  25. python2 package.py \
  26.     --archive-name $pkgname-$pkgver-alpine-$CARCH \
  27.     --builddir "$_reldir" \
  28.     --rename_pypy_c $pkgname
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement