cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end ) | use cffi for calling C | if a pep adds a mere 25-30 [C-API] functions or so, it's a drop in the ocean (cough) - Armin
lritter has joined #pypy
jcea has quit [Quit: jcea]
<ronan> firespeaker: pypy3 is packaged in the same way as cpython, so you can't pip install anything on the system pypy3, which makes it rather useless as you've noticed. OTOH, if you create a virtualenv based on it, you should be able to install what you want
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1152 [mattip: force build, release-pypy2.7-v7.x]
gracinet has quit [Ping timeout: 246 seconds]
xcm has quit [Remote host closed the connection]
andi- has quit [Remote host closed the connection]
xcm has joined #pypy
andi- has joined #pypy
lritter has quit [Ping timeout: 265 seconds]
lritter has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
jvesely has quit [Quit: jvesely]
dddddd has quit [Ping timeout: 240 seconds]
dddddd has joined #pypy
<mattip> cfbolz: 5dd2d3cca75b broke translation
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
dddddd has quit [Remote host closed the connection]
DarkPlutonium has joined #pypy
DarkUranium has quit [Quit: ZNC 1.7.4 - https://znc.in]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
dustinm- has joined #pypy
dustinm has quit [Ping timeout: 240 seconds]
oberstet has quit [Ping timeout: 250 seconds]
zmt01 has quit [Read error: Connection reset by peer]
zmt01 has joined #pypy
oberstet has joined #pypy
<cfbolz> mattip: looking
oberstet has quit [Remote host closed the connection]
oberstet has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
antocuni has joined #pypy
Ai9zO5AP has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
<kenaan> cfbolz default c866b476cfee /rpython/jit/metainterp/quasiimmut.py: fix translation, tweak output
gracinet has joined #pypy
jeroud has quit [Read error: Connection reset by peer]
jeroud has joined #pypy
antocuni has quit [Ping timeout: 265 seconds]
rubdos has quit [Ping timeout: 246 seconds]
rubdos has joined #pypy
jcea has joined #pypy
<kenaan> mattip default 241777245f33 /pypy/tool/release/repackage.sh: refactor repackage script to generate exe
lritter has quit [Remote host closed the connection]
xcm has quit [Ping timeout: 268 seconds]
xcm has joined #pypy
jcea has quit [Quit: jcea]
<kenaan> mattip py3.6 f963c5cf8e2e /: merge default into py3.6
antocuni has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
ionelmc has quit [Quit: Connection closed for inactivity]
Rhy0lite has joined #pypy
jvesely has joined #pypy
dddddd has joined #pypy
dmalcolm has quit [Remote host closed the connection]
DarkPlutonium is now known as DarkUranium
david has joined #pypy
david is now known as Guest9758
BPL has joined #pypy
astronavt___ is now known as astronavt
<firespeaker> ronan, so the suggested way to numpy with pypy3 on debian unstable is in a virtualenv?
<ronan> yes
<firespeaker> how do I go about doing that?
<firespeaker> ronan: also, is there any reason pypy3 is packaged using cpython stuff in debian?
<firespeaker> it means pretty much everything fails out of the box
<ronan> it's something like 'virtualenv -p `which pypy3` my-pypy-env', then 'source my-pypy-env/bin/activate'
<ronan> as for why it's like that, ask tumbleweed
<mattip> maybe even "pypy3 -mvenv my-pypy-env", if they didn't remove venv as well as ensurepip
<ronan> yes, that should work too
<ronan> but virtualenv installs pip, which venv doesn't IIRC
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1152 [mattip: force build, release-pypy2.7-v7.x]
<firespeaker> by `virtualenv`, you mean `python3 /usr/lib/python3/dist-packages/virtualenv.py` ?
<firespeaker> or something else?
<ronan> firespeaker: yes, that thing
<firespeaker> cool, seems to be letting me install numpy from pip in that virtual environment
<firespeaker> though mattip said something about it not being optimised when built with pip
<ronan> well, it can be optimised if you install and configure the right things (see numpy docs)
<firespeaker> in the virtual environment?
<ronan> yes
<ronan> or you can get a wheel from https://github.com/antocuni/pypy-wheels
<firespeaker> what are wheels?
<firespeaker> like, a python install with a bunch of libraries?
<ronan> a binary distribution format for python packages
<firespeaker> ah, okay
<ronan> pip uses them automatically if it finds an appropriate one
<firespeaker> ah
<firespeaker> hm, it says those are for ubuntu
<ronan> they're very likely to work on debian as well
<firespeaker> lol, the pypy3 virtualenv I made runs this script at over twice as long as just cpython
<firespeaker> oh man, and I screwed something up on my system last night; now pip3 says "no module named pip"
<firespeaker> okay an apt reinstall fixed that
<firespeaker> ronan: hm, should I uninstall my package manager's version of numpy before I install that wheel?
<firespeaker> otherwise I get this:
<firespeaker> $ pip3 install --extra-index-url https://antocuni.github.io/pypy-wheels/ubuntu numpy
<firespeaker> Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.16.5)
<firespeaker> or should I do it in my virtualenv?
<ronan> you should do it in your virtualenv
<firespeaker> ahkay
<ronan> the whole point is that the package directories are separate
<firespeaker> okay
<firespeaker> whoa
<firespeaker> when I use that numpy I get errors
<ronan> firespeaker: check the pypy-wheels docs, you need to install some libs
<firespeaker> hm, not finding those docs...
<ronan> firespeaker: I mean https://github.com/antocuni/pypy-wheels
<firespeaker> I see it says three libraries
<firespeaker> ah, I see, misread it at first
<firespeaker> okay
<firespeaker> aha, first debian/ubuntu difference found
<firespeaker> libopenblas, not libblas
<firespeaker> okay, still taking over twice as long to run this script with pypy3 and that wheel version of numpy
<firespeaker> anyway, matplotlib is the bottleneck in this script
oberstet has quit [Quit: Leaving]
<firespeaker> I guess I should try to make a matplotlib wheel for pypy?
* firespeaker guesses this isn't trivial
marky1991 has joined #pypy
<ronan> Yet another oddity in the encode()/decode() protocol: error handlers can completely replace the input
<ronan> I'm wondering if we should implement it or just say "Go home CPython, you're drunk!"
ekaologik has joined #pypy
marky1991 has quit [Remote host closed the connection]
<ronan> actually, it's only for decoding
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
antocuni has quit [Ping timeout: 268 seconds]
marky1991 has quit [Remote host closed the connection]
<cfbolz> ronan: yes, it's completely ridiculous
<cfbolz> I don't think it makes sense to try to implement it
<ronan> well, it doesn't seem that hard to implement, but pfff...
ekaologik has quit [Quit: https://quassel-irc.org - Komfortabler Chat. Überall.]
gracinet has quit [Quit: Leaving.]
Rhy0lite has quit [Quit: Leaving]
xcm has quit [Ping timeout: 268 seconds]
xcm has joined #pypy
Ai9zO5AP has quit [Quit: WeeChat 2.5]
xcm is now known as Guest19094
Guest19094 has quit [Killed (wolfe.freenode.net (Nickname regained by services))]
xcm has joined #pypy
antocuni has joined #pypy
Ai9zO5AP has joined #pypy
<cfbolz> ronan: let's raise a WhatWereYouSmokingError
antocuni has quit [Ping timeout: 240 seconds]
<mattip> ronan: I started dealing with absurd error handlers on the codec_errorhandler branch
<mattip> feel free to continue it if this is what you meant or to redo it if not
inhahe has quit []
inhahe has joined #pypy
_whitelogger has joined #pypy
jcea has joined #pypy