This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

Project:Python/pypy-bin

From Gentoo Wiki (test)
Jump to:navigation Jump to:search

dev-python/pypy-bin is the PyPy distribution package for users that can't build PyPy themselves. The build is done by Gentoo developers with a few combinations of USE flags.

Building packages for pypy-bin

Preparation

To help with building consistent packages, dev-binpkg/pypy ebuild is provided in ::mgorny overlay.

user $layman -a mgorny

If necessary, bump the package to appropriate PyPy version and port the changes from gx86 ebuild.

Afterwards, choose a location for binpackage output, and store it in make.conf:

FILE /etc/portage/make.confSetting binpkg location
PYPY_BINPKG_STORE=/var/tmp/pypy-bin
Note
You usually want to use a separate chroot to build LibreSSL versions.

Building PyPy2

To build all the amd64 variants, the following script may be used:

FILE /usr/local/bin/build-pypy-amd64Building script for amd64
USE="bzip2 jit -libressl ncurses -sandbox" emerge -1v dev-binpkg/pypy
USE="bzip2 -jit -libressl ncurses -sandbox" emerge -1v dev-binpkg/pypy
USE="bzip2 jit libressl ncurses -sandbox" emerge -1v dev-binpkg/pypy
USE="bzip2 -jit libressl ncurses -sandbox" emerge -1v dev-binpkg/pypy

To build all the x86 variants, the following script may be used:

FILE /usr/local/bin/build-pypy-x86Building script for x86
USE="bzip2 jit -libressl ncurses -sandbox cpu_flags_x86_sse2" emerge -1v dev-binpkg/pypy
USE="bzip2 -jit -libressl ncurses -sandbox cpu_flags_x86_sse2" emerge -1v dev-binpkg/pypy
USE="bzip2 -jit -libressl ncurses -sandbox -cpu_flags_x86_sse2" emerge -1v dev-binpkg/pypy
USE="bzip2 jit libressl ncurses -sandbox cpu_flags_x86_sse2" emerge -1v dev-binpkg/pypy
USE="bzip2 -jit libressl ncurses -sandbox cpu_flags_x86_sse2" emerge -1v dev-binpkg/pypy
USE="bzip2 -jit libressl ncurses -sandbox -cpu_flags_x86_sse2" emerge -1v dev-binpkg/pypy

Building PyPy3

To build all the amd64 variants, the following script may be used:

FILE /usr/local/bin/build-pypy-amd64Building script for amd64
USE="bzip2 jit ncurses -sandbox" emerge -1v dev-binpkg/pypy3
USE="bzip2 -jit ncurses -sandbox" emerge -1v dev-binpkg/pypy3

To build all the x86 variants, the following script may be used:

FILE /usr/local/bin/build-pypy-x86Building script for x86
USE="bzip2 jit ncurses -sandbox cpu_flags_x86_sse2" emerge -1v dev-binpkg/pypy3
USE="bzip2 -jit ncurses -sandbox cpu_flags_x86_sse2" emerge -1v dev-binpkg/pypy3
USE="bzip2 -jit ncurses -sandbox -cpu_flags_x86_sse2" emerge -1v dev-binpkg/pypy3

Shipping

After all builds are done, .tar.xz packages will be placed in your PYPY_BINPKG_STORE. Put them on your devspace and bump dev-python/pypy-bin appropriately.