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
<toad_polo>
On PyPy it makes sense to disable the C extension entirely (it's faster in all cases to use the pure Python implementation), but I don't want people installing on aarch64 or musl CPython or something to get a version that has the C extension disabled.
<toad_polo>
I also don't want to ship a bunch of different wheels for every supported version of pypy.
<Dejan>
toad_polo, antocuni is making some pure pypy wheels
<antocuni>
am I?
<Dejan>
antocuni, i thought you do, nose numpy ones
<antocuni>
the wheels I am publishing contains binary compiled extensions, so they are tagged for a specific pypy ABI
<antocuni>
I think that toad_polo wants to create a wheel which contains only .py files, but that it will be installed ONLY on pypy
<toad_polo>
Yeah.
<antocuni>
toad_polo: I don't know whether it is possible. It's a real "don't know", in the sense that it might be :)
<antocuni>
in this case, I would be glad to know the answer :)
<antocuni>
but you might have a better luck to ask the #pypa guys
<antocuni>
if it's not possible, I think it's a legitimate use case and they should add support for it
<antocuni>
but it's just my opinion, of course
<mattip>
toad_polo: `python setup.py bdist_wheel --help`. You should be able to set the pythontag to pp3
<toad_polo>
I tried replacing `-py3-none-any.whl` with `-pp3-none-any.whl`, but when I did some test like `pip install -f dist --no-deps --no-index -t tmp/ backports.zoneinfo`, it always picked up the sdist.
<toad_polo>
I am the world's biggest campaigner for "stop invoking `setup.py`", so I'm not about to use `bdist_wheel` 😛
<toad_polo>
But I think setting the python tag to pp3 doesn't seem to work?
<mattip>
ahh. So you have a pure python wheel and you want to install it? I thought the problem was creating the wheel
<mattip>
ok, what version of pip are you using?
<toad_polo>
The latest version.
<toad_polo>
I am creating the wheel.
<mattip>
hmm. Then that might be a bug in pip + pypy3 somewhere
<mattip>
can you put the wheel up on a binary pastebin?
<toad_polo>
Looks like `packaging.tags.compatible_tags()` doesn't emit anything with `pp` in it.
<mattip>
hmm. What if you try pp373 instead of pp3
<mattip>
or am I looking at an old version of pip?
<toad_polo>
mattip: Not working for me with pp373
<mattip>
yeah, that changed between pip 20.0 and 20.1, now they use packaging.tags (like you said)
<toad_polo>
I can get `compatible_tags` to emit `pp-none-any` if I pass it `interpreter="pp"`, but that doesn't include any of the ones that start with `py`.
<mattip>
doesn't pip call tags.sys_tags?
<mattip>
doesn't pip call tags.sys_tags()?
<toad_polo>
Ah, maybe it does, but that only gives: `['pp36-pypy36_pp73-manylinux2014_x86_64', 'pp36-pypy36_pp73-manylinux2010_x86_64', 'pp36-pypy36_pp73-manylinux1_x86_64', 'pp36-pypy36_pp73-linux_x86_64', 'pp36-none-manylinux2014_x86_64', 'pp36-none-manylinux2010_x86_64', 'pp36-none-manylinux1_x86_64', 'pp36-none-linux_x86_64']`
<toad_polo>
OK, so the regression happened between 19.3.1 and 20.0.2
* mattip
gotta run
<toad_polo>
It seems that `pp3-none-any` does work in `pip==19.3.1`, so assuming that's a valid tag specific to pypy, I think I can release wheels like that and when it's fixed in `pip` people will just start picking it up.
<toad_polo>
Until then it's no worse than my old plan, which was to go sdist-only.
<mattip>
ok, thanks for the heads up
<mattip>
I will follow up on pypa/packaging if I find the problem
<arigo>
antocuni
<arigo>
(and others): there is no webhook for pushes from heptapod that we already configured, right?
<antocuni>
not that I know, but I admit I didn't do much during the migration, so mattip is probably a better person to ask :)
<arigo>
OK. I can probably easily adapt a bot I did some time ago, so I'll wait and see if that's useful
<ronan>
arigo,
<ronan>
what kind of bot?
<arigo>
I did one because I was not happy about bots that join and leave the channel all the time
jacob22 has quit [Read error: Connection reset by peer]
<ronan>
to report commits?
<arigo>
I took "gnotty" and hacked at it
<arigo>
yes
<ronan>
btw, there IS a webhook already, for the docs
<arigo>
yes
<arigo>
right, sorry for the confusion
<ronan>
IIRC, mattip set it up
<arigo>
I meant a hook pushing to irc
jacob22 has joined #pypy
<mattip>
the webhook for the docs is broken, there is an open heptapod issue
<mattip>
I don't know what happened to the IRC one.
<mattip>
I think it was something in the buildbot somewhere?
jvesely has quit [Quit: jvesely]
<mattip>
toad_polo: cp3 and pp3 were dropped on purpose. See the discussion starting here