cfbolz changed the topic of #pypy to: #pypy PyPy, the flexible snake https://pypy.org | IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end and https://libera.irclog.whitequark.org/pypy | insert pithy quote here
fotis has quit [Ping timeout: 265 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 258 seconds]
Gustavo6046 has quit [Remote host closed the connection]
Gustavo6046 has joined #pypy
fotis has joined #pypy
Gustavo6046_ has joined #pypy
Gustavo6046 has quit [Ping timeout: 265 seconds]
Gustavo6046_ is now known as Gustavo6046
fotis has quit [Ping timeout: 268 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 272 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 265 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 258 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 252 seconds]
fotis has joined #pypy
Julian has joined #pypy
fotis has quit [Ping timeout: 265 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 258 seconds]
Julian has quit [Quit: leaving]
fotis has joined #pypy
fotis has quit [Ping timeout: 272 seconds]
fotis has joined #pypy
greedom has joined #pypy
greedom has quit [Client Quit]
greedom has joined #pypy
jkovac1 has quit [*.net *.split]
jkovac1 has joined #pypy
tumbleweed_ has joined #pypy
tazle_ has joined #pypy
tumbleweed has quit [*.net *.split]
tazle has quit [*.net *.split]
fotis has quit [Ping timeout: 258 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 272 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 268 seconds]
greedom has quit [Remote host closed the connection]
fotis has joined #pypy
fotis has quit [Ping timeout: 268 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 252 seconds]
greedom has joined #pypy
greedom has quit [Remote host closed the connection]
greedom has joined #pypy
Julian has joined #pypy
fotis has joined #pypy
fotis has quit [Ping timeout: 268 seconds]
otisolsen70 has joined #pypy
<mattip> tumbleweed_: someone reached out with a scenario where they installed pypy3-v7.3.5 and then did `sudo pypy3 -m pip install numpy` and it went to the same directory as cpython
<mattip> I tried to convince them that `sudo pip` is evil, but re-using the same path seems problematic
fotis has joined #pypy
<mattip> it should have pypy3, not python3
<mattip> (and the corresponding sections in lib-python/3/distutils/command/install.py and lib-python/3/sysconfig_pypy.py)
greedom has quit [Quit: Konversation terminated!]
tazle_ is now known as tazle
tazle has quit [Quit: leaving]
tazle has joined #pypy
fotis has quit [Ping timeout: 258 seconds]
fotis has joined #pypy
tazle has quit [Client Quit]
tazle has joined #pypy
tazle has quit [Client Quit]
tazle has joined #pypy
<cfbolz> mattip: note that there was/is a general conversation happening between debian packaging and cpython-dev
<cfbolz> arounds uch issues
fotis has quit [Ping timeout: 268 seconds]
stkrdknmibalz has quit [Quit: WeeChat 3.0.1]
<tumbleweed_> mattip: that L352 won't be reached on pypy
<tumbleweed_> also, there's a relevant patch applied to that file: https://salsa.debian.org/debian/pypy3/-/blob/debian/debian/patches/distutils-install-layout
fotis has joined #pypy
* tumbleweed_ tries to reproduce
tumbleweed_ is now known as tumbleweed
lritter has joined #pypy
greedom has joined #pypy
<mattip> hmm, so the distutils patch has this
<tumbleweed> = /usr/lib/python3/dist-packages
<tumbleweed> which is where we put our python modules (shared between cpython and pypy)
<mattip> is that where "sudo pypy3 -m pip install numpy" will end up putting it?
<tumbleweed> no, it should be using the pypy-local scheme
<mattip> hmm
<mattip> when I do the command, I get "Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.17.4)"
<mattip> so cpython/debian is installing numpy there, which confuses pypy
<mattip> (I don't dispute that the whole "sudo pip install" saga is wrong, but that is above my pay grade)
<tumbleweed> even if sudo pip install is a good way to break your system, it should still work, if used correctly
<tumbleweed> pypy3 -m pip install -U numpy - WFM
<tumbleweed> although it uninstalled python3-numpy, which it shouldn't have
<mattip> what happens when you do it with sudo and without -U
<tumbleweed> that was as root, so with sudo
<mattip> ahh, so without -U, sorry
<tumbleweed> without -U if python3-numpy is installed it doesn't know that it's only built for cpython
<tumbleweed> I guess -I or --ignore-installed would work here too
<tumbleweed> err or --force-reinstall
<mattip> I think trying to share /usr/lib/python3/dist-packages between cpython and pypy is problematic
<tumbleweed> we really should do a pypy3-numpy package in Debian (and other popular C libs)
<tumbleweed> yes, it has some issues
<mattip> building popular c-extensions for pypy3 would be cool, as long as it isn't too much effort
<mattip> then I guess the pypy3-numpy and python3-numpy could live happily side-by-side, since they will be the same exact version
<tumbleweed> yeah
<tumbleweed> I can't see any metadata that would enable pip to understand and resolve this problem, itself
<tumbleweed> unless installed from wheel, then you get numpy-*.dist-info/WHEEL
<mattip> in the "official" portable builds, we take the no-sharing approach
<mattip> like conda
<tumbleweed> sounds like the right thing to do
<tumbleweed> I was on the fence about sharing in the beginning, because there are definitely some issues with it (that I don't think are resolveable)
<tumbleweed> but on the plus side, for pure-python modules it is really useful
<tumbleweed> packages don't have to change to support pypy, and we don't have to bloat the archive with pypy3-* packages
<mattip> I wonder how much disk it would consume to not share
<tumbleweed> in the big picture, not a whole lot. But it means extra binary packages for every python module that opts-in
<tumbleweed> and there's always pressure to not do that
<mattip> maybe someday hpy will take off and everything will be simpler
<tumbleweed> we can hope :)
<mattip> sorry, I don't have any other good ideas
<mattip> we had discussed trying to be 100% cpython compatible with our c-extension modules, but it is very tricky
fotis has quit [Ping timeout: 272 seconds]
fotis has joined #pypy
stkrdknmibalz has joined #pypy
Julian has quit [Ping timeout: 272 seconds]
fotis has quit [Ping timeout: 252 seconds]
Julian has joined #pypy
fotis has joined #pypy
fotis has quit [Ping timeout: 272 seconds]
greedom has quit [Ping timeout: 250 seconds]
Julian has quit [Ping timeout: 272 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 268 seconds]
fotis has joined #pypy
benjaminp is now known as benjamin
Julian has joined #pypy
Julian has quit [Ping timeout: 268 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 265 seconds]
Julian has joined #pypy
fotis has quit [Ping timeout: 265 seconds]
Julian has quit [Ping timeout: 272 seconds]
Julian has joined #pypy
otisolsen70 has quit [Quit: Leaving]
Julian has quit [Ping timeout: 268 seconds]
fotis has joined #pypy
Julian has joined #pypy
Julian has quit [Ping timeout: 252 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 272 seconds]
fotis has quit [Ping timeout: 272 seconds]
Julian has joined #pypy
Julian has quit [Ping timeout: 258 seconds]
fotis has joined #pypy
Julian has joined #pypy
Julian has quit [Ping timeout: 268 seconds]
Julian has joined #pypy
fotis has quit [Ping timeout: 268 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 268 seconds]
fotis has joined #pypy
greedom has joined #pypy
greedom has quit [Client Quit]
greedom has joined #pypy
greedom has quit [Read error: Connection reset by peer]
greedom has joined #pypy
fotis has quit [Ping timeout: 265 seconds]
fotis has joined #pypy
fotis has quit [Ping timeout: 272 seconds]
fotis has joined #pypy
greedom has quit [Remote host closed the connection]
fotis has quit [Ping timeout: 268 seconds]
fotis has joined #pypy
lritter has quit [Ping timeout: 268 seconds]