cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | the secret reason for us trying to get PyPy users: to test the JIT well enough that we're somewhat confident about it
<antocuni>
even better: let's emit a wave with the same frequency as minor collections/second. If you allocate fast enough, you should be able to play some music
<kenaan>
cfbolz py3.6-wordcode bac7bc4a6c4f /lib-python/3/test/test_opcodes.py: fix test
<cfbolz>
ronan: is it ok if I merge py3.6-wordcode to py3.6? it doesn't break assert reinterpretation more than it is already broken
karanlyons has left #pypy [#pypy]
dfee has joined #pypy
dfee has quit [Ping timeout: 264 seconds]
oberstet has joined #pypy
jcea has joined #pypy
marky1991 has joined #pypy
dddddd has joined #pypy
Rhy0lite has joined #pypy
R3d_Sky has joined #pypy
<lesshaste>
hi all
<lesshaste>
why when you do pip install numpy scipy etc. does it then say ImportError: No module named numpy
<lesshaste>
forcing you to install them one at a time?
<lesshaste>
(with pypy of course)
<fijal>
noone knows the way of the pip
<lesshaste>
but it doesn't happen with cpython and pip I believe
<fijal>
who knows why...
<lesshaste>
ok :)
<lesshaste>
just thought I would ask...
<lesshaste>
it is really really impressive how you can now happily use scipy, matplotlib etc.
<lesshaste>
that's a revolution in pypyness :)
<lesshaste>
except in OS X sadly
<fijal>
I'm always impressed pip works at all, ever tbh
<lesshaste>
right but how awesome is that it that scipy now works?!
<lesshaste>
(very :) )
marr has quit [Ping timeout: 245 seconds]
Garen has quit [Read error: Connection reset by peer]
Garen has joined #pypy
<tsutsumi>
fijal: I have a PR touching runicode.py, if desired I could move the function I touched (unicode_encode_utf_8_impl) over to unicodehelpers. I wanted to keep the pr changes tiny and do that in maybe a followup commit. But do you want me to do that in the PR?
<tsutsumi>
Okay. It looks like I can't move over the whole method: utf_8 encoding is used in both rlib/rope.py and rlib/rstr.py
<tsutsumi>
I don't think I could move a lot out, if we depend on it. I changed the error handling logic. I'm not clear on what rpython's guarantees are around unicode encoding. But if the only thing we're guaranteeing is that we can compile rpython...
<tsutsumi>
yeah, I think it's hard to add any reusable code in runicode.py. I could reduce the code in runicode.py by removing some of the arguments beind handled
<tsutsumi>
the two times unicode encoding is used in rpython, has very similar arguments
<tsutsumi>
rstr.py:388 and rlib/rope.py:1491
Hasimir has quit [Ping timeout: 240 seconds]
<tsutsumi>
So I think, the only reasonable thing I could do is copy unicde_encode_utf_8_impl code over to unicodehelpers, and remove the variation in handlers in the runicode.py version
TheAdversary has quit [Ping timeout: 260 seconds]
<tsutsumi>
does that sound good?
dfee has joined #pypy
dfee has quit [Ping timeout: 240 seconds]
<cfbolz>
tsutsumi: you can also copy it over, and leave the runicode version as it is
user24 has joined #pypy
lesshaste has quit [Read error: Connection reset by peer]
stevenja_ has quit [Remote host closed the connection]
oberstet has quit [Read error: Connection reset by peer]
wleslie has joined #pypy
oberstet has joined #pypy
tbodt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tbodt has joined #pypy
<njs>
the reason 'pip install scipy' says 'ImportError: No module named numpy' is that scipy's setup.py actually tries to import numpy while building scipy, which obviously can't work if you haven't installed numpy yet. On CPython this doesn't happen b/c scipy has pre-built wheels, so you just download those instead of building it yourself.
oberstet has quit [Ping timeout: 245 seconds]
<njs>
eventually pyproject.toml will fix this by letting scipy tell pip that it needs numpy installed to build, but for now pip is not smart enough to build dependencies specified in pyproject.toml, so this will fail b/c numpy has no pypy wheels on pypi
<njs>
the solution to all this is for pypy to fix its abi so that people can reasonably upload wheels :-)