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
YannickJadoul has quit [Quit: Leaving]
lritter has quit [Ping timeout: 272 seconds]
oberstet has quit [Quit: Leaving]
jacob22 has quit [Read error: Connection reset by peer]
jacob22 has joined #pypy
lritter has joined #pypy
siddhesh has joined #pypy
siddhesh has quit [Changing host]
siddhesh has joined #pypy
siddhesh has left #pypy [#pypy]
jcea has quit [Quit: jcea]
lritter has quit [Quit: Leaving]
jacob22 has quit [Ping timeout: 260 seconds]
<mattip> danchr: it seems there is a missing "#include <wchar.h>" in building _ctypes_test.c,
<mattip> and the lzma download has a hash mismatch
<mattip> strangely, the link lzma link is available only as https, but the openssl one can be downloaded via http
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/6014 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7205 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/5208 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5531 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1386 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/653 [mattip: build release, release-pypy2.7-v7.x]
jacob22 has joined #pypy
oberstet has joined #pypy
<bbot2> Exception: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/6014 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Exception: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7205 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Exception: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1386 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Exception: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5531 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Exception: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/5208 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Exception: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/653 [mattip: build release, release-pypy2.7-v7.x]
jacob22 has quit [Ping timeout: 272 seconds]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/6015 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7206 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/5209 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5532 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1387 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/654 [mattip: build release, release-pypy2.7-v7.x]
<antocuni> I'm proud to announce commit 27e972bbd603: I suppressed the warnings about missing cpyext slots, nobody was looking at them anyway
<antocuni> ah no, I had to rebase; the real commit id is a20ff4516652
<mattip> +1. Not sure why I thought they would be important
<antocuni> honestly, I don't know
<antocuni> but it's obvious that they are not SO important, since cpyext is basically working anyway :)
<bbot2> Success: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7206 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/6015 [mattip: build release, release-pypy2.7-v7.x]
jacob22 has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/5209 [mattip: build release, release-pypy2.7-v7.x]
<danchr> mattip: how do I run that failing ctypes test?
<mattip> then I think you should be able to run the test as
<mattip> downloaded/pypy/bin/pypy downloaded/pypy/lib-python/2.7/test/test_ctypes.py
<mattip> ahh, without the py. hmm.
<mattip> no, first guess was correct. with the py
<danchr> here's an interesting error: ./bin/pypy pytest.py fails to run any tests, due to a compile error in cppyy
<danchr> you can't build against libstdlibc++ on 10.15; targeting 10.9 fixes it
<danchr> 10.9 is still _quite_ old, so perhaps the minimum target should be upgraded?
<danchr> (it was released in October 2013)
mgedmin has quit [Quit: ZNC - https://wiki.znc.in/ZNC]
mgedmin has joined #pypy
_whitelogger has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5532 [mattip: build release, release-pypy2.7-v7.x]
<danchr> mattip: I just pushed a topic fixing that error
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/6016 [mattip: build release, release-pypy3.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7207 [mattip: build release, release-pypy3.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/5210 [mattip: build release, release-pypy3.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5533 [mattip: build release, release-pypy3.7-v7.x]
<mattip> danchr: I thought we fixed the libstdlibc++ linking a while back
<LarstiQ> danchr: what would be the next minimum target?
<danchr> 10.9
<danchr> LarstiQ: or perhaps I misunderstood you?
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/654 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/655 [mattip: build release, release-pypy3.7-v7.x]
<LarstiQ> danchr: aah, no I had misunderstood you
<danchr> mattip: perhaps I ran the test wrongly?
<LarstiQ> I don't know what kind of ABI stability osx people expect, but 7 years sounds reasonable to me. Going lower than that might be iffy
<mattip> I seen to remember something about CFLAGS and stdlib=libc++ or so
<danchr> generally speaking, apple is quite aggressive about deprecating old releases; the oldest to receive security updates is 10.13
<mattip> someone reported something similar, see this thread from pandas
<mattip> danchr: but we have people running old hardware with old versions, it would be a shame to drop them
<danchr> 10.8 did restrict hardware support compared to 10.7; the next release to do so was 10.13
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1387 [mattip: build release, release-pypy2.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1388 [mattip: build release, release-pypy3.7-v7.x]
<mattip> why do we have lib_pypy/_ctypes_test.c and extra_tests/ctype_tests/_ctype_test.c
<mattip> and they are different?
<danchr> here's an idea for how to adjust the pypy search path logic:
<danchr> 1) add an extra translation option libdir
<danchr> 2) if it’s set and the executable isn’t named `pypy-c`, _always_ default to a module search path of $libdir:$libdir/lib-dynload:$libdir/site-packages (in whatever order)
<danchr> 3) rely on the code in site.py to handle venv, etc.
<danchr> would that work
<danchr> ?
<mattip> is this similar to what CPython does?
<mattip> we should be trying to move closer to 100% compatibility
<danchr> I believe CPython — in version 3 at least — implements most of the import logic in python
<danchr> nope
<pmp-p> yes importlib is frozen
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7207 [mattip: build release, release-pypy3.7-v7.x]
jcea has joined #pypy
<danchr> pmp-p: ah, that's an “interesting” approach — neat and a bit horrible at the same time :)
<mattip> where does that sets the bootstrap search path for site-packages?
<danchr> mattip: in cpython?
<mattip> yes
<mattip> it is compiled using Programs/_freeze_importlib.c
<danchr> I think that's done in Modules/getpath.c
<mattip> which has as a top comment "This is built as a stand-alone executable by the Makefile, and helps turn Lib/importlib/_bootstrap.py into a frozen module in Python/importlib.h
<mattip> both PyPy and CPython use Lib/importlib/_bootstrap.py, there should be no difference
<danchr> is there an easy way to translate a minimal but functional pypy?
<mattip> you can run untranslated on top of cpython2
<mattip> python2 pypy/bin/pyinteractive.py
<mattip> it takes about ~30 secs to start up on my machine
<mattip> and has some builtin modules
<mattip> you can add more with python2 pypy/bin/pyinteractive.py --withmod-XXX
<mattip> get help with python2 pypy/bin/pyinteractive.py --help
<mattip> ctrl-c will drop you into the RPython interpreter, where you can examine "space" (among other things)
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/6016 [mattip: build release, release-pypy3.7-v7.x]
oberstet has quit [Remote host closed the connection]
Taggnostr has quit [Quit: Switching to single player mode.]
Taggnostr has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1388 [mattip: build release, release-pypy3.7-v7.x]
wilbowma has quit [Ping timeout: 272 seconds]
wilbowma has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/5210 [mattip: build release, release-pypy3.7-v7.x]
Taggnostr has quit [Quit: Switching to single player mode.]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/655 [mattip: build release, release-pypy3.7-v7.x]
Taggnostr has joined #pypy
<bbot2> Exception: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5533 [mattip: build release, release-pypy3.7-v7.x]
<mattip> danchr: around?
<danchr> mattip: yes?
<danchr> odd
<mattip> could you see what is up? It didn't upload, but maybe you can use another py3.7 download just to test the cffi build
<mattip> unpack it, change the lzma build link, and trigger a rebuild
<danchr> d'oh:
<danchr> sources = os.path.join(deps_destdir, os.path.basename(archive)[:-7])
<danchr> mattip: just wondering; have you built the Boehm GC recently?
<mattip> hang on, let's finish this. Is there a problem with the sources?
<danchr> sure
<danchr> I think this'll fix it: https://dpaste.com/CMVPCTQDH
<danchr> no it won't…
<danchr> (this is why we test code before claiming it works…)
<mattip> ahh, there is an extra "." in the directory name where it runs
* mattip off for a bit, back in 2 hours
cfbolz has quit [Ping timeout: 240 seconds]
cfbolz has joined #pypy
<danchr> mattip: I pushed a fix
jcea has quit [Quit: jcea]
jcea has joined #pypy
Smigwell has quit [Remote host closed the connection]
jacob22 has quit [Quit: Konversation terminated!]
jacob22 has joined #pypy
Dejan has quit [Quit: Leaving]
<ronan> mattip: lib_pypy/_ctypes_test.c is used by lib-python tests, whereas extra_tests/ctype_tests/_ctype_test.c is used by extra_tests
<ronan> There may be some unnecessary duplication between the 2 kinds of tests
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/6017 [mattip: build release, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7208 [mattip: build release, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/5211 [mattip: build release, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5534 [mattip: build release, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1389 [mattip: build release, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/656 [mattip: build release, release-pypy3.6-v7.x]
<mattip> ronan: at some point it would be nice to have a test sprint: consolidate the tests, rework more of them to -D tests,
<mattip> rethink the way we do lib-python tests since we have given up on running them untranslated,
<mattip> etc
<mattip> danchr: thanks for fixing the cffi build. That code was quite brittle
<ronan> mattip: +1
<mattip> ok, compress step finally passed on py3.6 release
mjacob has quit [Ping timeout: 260 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7208 [mattip: build release, release-pypy3.6-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/6017 [mattip: build release, release-pypy3.6-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1389 [mattip: build release, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/6018 [mattip: build release, release-pypy3.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7209 [mattip: build release, release-pypy3.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1390 [mattip: build release, release-pypy3.7-v7.x]
Smigwell has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5534 [mattip: build release, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-32/builds/5535 [mattip: build release, release-pypy3.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/5211 [mattip: build release, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/5212 [mattip: build release, release-pypy3.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/656 [mattip: build release, release-pypy3.6-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/657 [mattip: build release, release-pypy3.7-v7.x]
wleslie has quit [Ping timeout: 260 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7209 [mattip: build release, release-pypy3.7-v7.x]
wleslie has joined #pypy
idnar has quit [Write error: Connection reset by peer]
avakdh has quit [Read error: Connection reset by peer]
phlebas has quit [Read error: Connection reset by peer]
agronholm has quit [Read error: Connection reset by peer]
avakdh has joined #pypy
idnar has joined #pypy
agronholm has joined #pypy
phlebas has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1390 [mattip: build release, release-pypy3.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/6018 [mattip: build release, release-pypy3.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/5212 [mattip: build release, release-pypy3.7-v7.x]