Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Portage now supports pypy as the backend.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
teika
n00b
n00b


Joined: 19 Feb 2011
Posts: 59
Location: japan

PostPosted: Mon Apr 02, 2012 1:02 pm    Post subject: Portage now supports pypy as the backend. Reply with quote

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
View user's profile Send private message
cgw
n00b
n00b


Joined: 04 Oct 2012
Posts: 2

PostPosted: Thu Oct 04, 2012 4:40 pm    Post subject: Is anyone using pypy for portage? Reply with quote

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
View user's profile Send private message
cgw
n00b
n00b


Joined: 04 Oct 2012
Posts: 2

PostPosted: Thu Oct 04, 2012 5:56 pm    Post subject: fixed! Reply with quote

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
View user's profile Send private message
one_and_only
Apprentice
Apprentice


Joined: 13 May 2007
Posts: 250
Location: PL/Krakow

PostPosted: Thu Nov 01, 2012 12:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum