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
<mattip>
maybe the problem is that the snap contianer should not be using its own libm, is that due to our package script?
<mattip>
no, we are not packaging libm in the portable builds
oberstet has quit [Remote host closed the connection]
oberstet has joined #pypy
ekaologik has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
__pv has joined #pypy
__pv has quit [Quit: leaving]
Ashleee has quit [Remote host closed the connection]
Ashleee has joined #pypy
marvin_ has quit [Remote host closed the connection]
marvin_ has joined #pypy
<tos9>
whee, I no longer know what's real anymore... same Python interpreter (a symlink between two paths), different sys.path depending on whether you use the symlink or not
<njs>
the interpreter changing its behavior based on the path where it's invoked from isn't just for venvs though, it's fundamentally required if you want a python binary that work when be placed at different absolute paths in the filesystem
<tos9>
njs: I am obviously behind on things that have changed, but my point was "something more has changed"
<tos9>
(I guess again this isn't pypy specific)
<tos9>
njs: But I don't follow the second message -- this worked "fine" in pre-virtualenv20
<tos9>
so it seems now what's changed is virtualenv==20 now follows that pep, and virtualenv<20 did not, so now if you have a symlink, you get a different site-packages
<tos9>
that works with virtualenv<20, and does not with virtualenv>=20
<njs>
yeah I think traditionally virtualenv python binaries diverged from vanilla python binaries, and used some wacky hacks to find the right environment
xcm has quit [Remote host closed the connection]
<njs>
a symlink changing how your python binary works is normal behavior in vanilla python binaries
<tos9>
that sounds extremely weird to me
<tos9>
though of course I believe you :), and that PEP says it
<tos9>
I don't know why that's a good idea though.
xcm has joined #pypy
<tos9>
(or what to do instead, but maybe I give up with how fragile everything is :/ at least for this week)
<njs>
virtualenv v20 is a complete rewrite, and I think part of that is that on py3 it switched to using the new venv stuff instead of the janky hacks the virtualenv used to use
<njs>
and the nice thing about respecting symlinks is that it makes venv creation super fast, because your "new python binary" can just be a symlink to the original one, instead of a copy like it had to be for old-virtualenv
<tos9>
njs: (I shouldn't really talk much more without reading, but since I don't plan on doing that because I just wanted to do work :/ not diagnose more issues) -- why does that require changing symlink behavior
<tos9>
it seems like it should just be a pyvenv.cfg behavior
<tos9>
if you find a pyvenv.cfg, you use it
<tos9>
if you don't, you follow the symlink to get back to where it originally lives
<tos9>
programs changing their behavior when you symlink them doesn't seem like very normal behavior to me, but maybe it is and I just don't pay attention
<tos9>
I guess to fix my issue instead of symlinking I just get to write out wrapper files that exec the original binary or something but ugh
<njs>
yeah, I can see an argument for your proposal, but that would require the python interpreter startup do some special case stuff to detect and resolve symlinks, and it sounds like that wasn't done back 15 years ago or whatever, so now it would be a backcompat break, maybe
<njs>
or maybe it could be done, but it hasn't been, so :-/
<tos9>
I tried to see where else improvements are but I couldn't remember the name of the thing to use now instead of jitviewer ( antocuni I think every time I ask this you link me at some tool you wrote but I can't find it )
<tos9>
but will prob re-ask that tomorrow on europe-time so I learn it for the 100th time
<ronan>
tos9: vmprof
<tos9>
ronan: last time I tried it it didn't run anymore
<tos9>
does it run again do you know?
<tos9>
ronan: also hi! Hope you're well
<ronan>
tos9: yeah, I don't think the web server works any more, but you can install vmprof-server
* tos9
nods
<tos9>
I think that's what I ended up doing last time too
<tos9>
though hey vmprof.com just did... something
<tos9>
let's see whether that something is correct or not
<tos9>
ok never mind yeah whatever it did didn't work, will go back to vmprof-server'ing