| View previous topic :: View next topic |
| Author |
Message |
teika n00b

Joined: 19 Feb 2011 Posts: 55 Location: japan
|
Posted: Mon Apr 02, 2012 1:02 pm Post subject: Portage now supports pypy as the backend. |
|
|
Portage now supports pypy (Wikipedia article) as the backend; add USE="pypy -python2 -python3" to emerge portage.
The good news is it's said to be faster than CPython. The bad news is, building of pypy takes long; seems some 13 times of building a kernel.
If you're screwed up, you can install the portage binary from the tinderbox. default-linux/<your arch> is a moderate choice.
Enjoy. I won't try it. =P _________________ Easy Shift / Ctrl / AltGr ... hack; save your pinkies, type without drudge: topic 865313 |
|
| Back to top |
|
 |
cgw n00b

Joined: 04 Oct 2012 Posts: 2
|
Posted: Thu Oct 04, 2012 4:40 pm Post subject: Is anyone using pypy for portage? |
|
|
Is anyone using pypy for portage? I tried "USE=-python2 -python3 pypy1_9" and /usr/bin/emerge still runs with cpython2.7, not pypy. I created (possibly prematurely?) a bug report for this, containing more detail.
https://bugs.gentoo.org/show_bug.cgi?id=437198 |
|
| Back to top |
|
 |
cgw n00b

Joined: 04 Oct 2012 Posts: 2
|
Posted: Thu Oct 04, 2012 5:56 pm Post subject: fixed! |
|
|
Turns out the USE flag was masked (in /usr/portage/profiles/package.use.mask). Adding
a file /etc/portage/profile/package.use.mask/portage.use.mask containing the line
sys-apps/portage -pypy1_9
is sufficient to unmask the pypy1_9 USE flag.
(Clearly, I didn't know about masked USE flags, with Gentoo there's always something new to learn!) |
|
| Back to top |
|
 |
one_and_only Apprentice

Joined: 13 May 2007 Posts: 250 Location: PL/Krakow
|
Posted: Thu Nov 01, 2012 12:09 pm Post subject: |
|
|
anybody using/hacking pypy backend?
edit: quick benchmark of emerge -auND @world for quite not up-to-date system (time of resolving update graph, not the whole emerging):
| Code: |
pypy:
emerge --update --newuse --keep-going --deep --tree --quiet-build=y -a @worl 168.28s user 5.95s system 99% cpu 2:55.16 total
python3:
emerge --update --newuse --keep-going --deep --tree --quiet-build=y -a @worl 271.40s user 6.33s system 99% cpu 4:38.64 total
python2:
emerge --update --newuse --keep-going --deep --tree --quiet-build=y -a @worl 323.13s user 6.50s system 99% cpu 5:30.59 total
|
|
|
| Back to top |
|
 |
|