cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | "nothing compares to the timeshifter, my personal polar expedition in software" - pedronis
mattip has quit [Quit: bye]
mattip has joined #pypy
_whitelogger has joined #pypy
inhahe_ has quit [Read error: Connection reset by peer]
inhahe_ has joined #pypy
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
tav has quit [Quit: Hakuna Matata!]
tav has joined #pypy
marr has quit [Ping timeout: 260 seconds]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
_whitelogger has joined #pypy
jcea has quit [Quit: jcea]
ArneBab_ has joined #pypy
ArneBab has quit [Ping timeout: 240 seconds]
<mattip> for instance, I need the Tk_FindPhoto function, which is declared in tkDecls.h but I cannot find it in _tkinter.tklib_cffi
<fijal> mattip: feel like reading a blog post draft?
_whitelogger has joined #pypy
_whitelogger has joined #pypy
_whitelogger has joined #pypy
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 240 seconds]
_whitelogger has joined #pypy
<kenaan> arigo default 08b4e5ae6bfa /pypy/doc/build.rst: Issue #2676 Seems that Ubuntu 16.04 should have the same "new" package list.
<kenaan> arigo default aedd9ba91c12 /: merge heads
arigato has joined #pypy
<kenaan> arigo cffi/cffi d0a2021a388d /: Bump version number to 1.11.2
<kenaan> arigo cffi/cffi[release-1.11] 59ead014cdee /: hg merge default
<kenaan> arigo default 16f298b6276f /: Bump cffi version to 1.11.2
_whitelogger has joined #pypy
arigato has quit [Quit: Leaving]
<kenaan> arigo default 38a0a4871739 /pypy/doc/build.rst: Merged in cjrh/pypy/docs-osx-brew-openssl (pull request #572) DOCS: For translation on MacOS, get OpenSSL from Hom...
<kenaan> cjrh docs-osx-brew-openssl 9eb4dfce15c7 /pypy/doc/build.rst: DOC: For translation on MacOS, get OpenSSL from Homebrew and set env var.
_whitelogger has joined #pypy
<LarstiQ> mattip: it's been ages since I tried to use tkinter, I wouldn't be surprised if no one else tries either
antocuni has joined #pypy
<mattip> LarstiQ: I only need a handful of the 272 odd functions in tkDecls.h, but I wonder if I shouldn't do something systematic
<mattip> to export them all
<mattip> writing tests for all might be painful
tnorth has joined #pypy
exarkun has quit [Ping timeout: 260 seconds]
exarkun has joined #pypy
_whitelogger has joined #pypy
ssbr has quit [Quit: Leaving]
ssbr has joined #pypy
ssbr has quit [Remote host closed the connection]
ssbr has joined #pypy
amaury has joined #pypy
arigato has joined #pypy
<arigato> Alex_Gaynor: ping me when you're ready for uploading the binaries for cffi 1.11.2
ronan has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/3330 [danchr: build my branch, py3.5-mac-embedding]
tibkiss has joined #pypy
antocuni has quit [Ping timeout: 240 seconds]
<tibkiss> I'm trying to install pandas 0.18.1 using the pypy:2-5.9 docker image
<tibkiss> during install I encounter the following error:
<tibkiss> In file included from pandas/lib.c:271:0:
<tibkiss> pandas/src/datetime_helper.h: In function ‘mangle_nat’:
<tibkiss> pandas/src/datetime_helper.h:11:29: error: lvalue required as left operand of assignment
<tibkiss> PyDateTime_GET_MONTH(val) = -1;
<tibkiss> before the error I see the following warning:
<tibkiss> /usr/local/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
<tibkiss> I'd appreciate any idea how to resolve this error
tnorth has quit [Ping timeout: 246 seconds]
<mattip> tibkiss: you need to use pandas 0.20 at least, HEAD (not yet released 0.21) would be even better
<mattip> that warning is harmless
exarkun has quit [Ping timeout: 260 seconds]
exarkun has joined #pypy
<tibkiss> mattip: that's what I feared :)
<mattip> tibkiss: why the fear? Embrace the future :)
arigato has quit [Ping timeout: 260 seconds]
<mattip> you also need to use cython 0.27.1
arigato has joined #pypy
amaury has quit [Quit: Konversation terminated!]
amaury_ has joined #pypy
tnorth has joined #pypy
<kenaan> jerith unicode-utf8 c46107c45a6e /pypy/objspace/std/: getslice and fix {starts,ends}with.
TheAdversary has joined #pypy
amaury_ has quit [Ping timeout: 264 seconds]
TheAdversary has quit [Excess Flood]
TheAdversary has joined #pypy
mvantellingen has quit [Ping timeout: 240 seconds]
mvantellingen has joined #pypy
TheAdversary has quit [Remote host closed the connection]
TheAdversary has joined #pypy
<LarstiQ> mattip: well, upgrading components can mean carefully checking that everything still works
njs has quit [Ping timeout: 246 seconds]
<LarstiQ> so that likely means pypy specific branches to avoid any changes to the cpython based stack
njs has joined #pypy
<nanonyme> LarstiQ, as long as you have good regression test harness that ensures your expected functionality still works, you should be fine
<mattip> LarstiQ: I made an honest attempt, but parsing _all_ of tkDecl.h means #include ing most of X.h, which seems untenable
<mattip> so I will add only what I need for matplotlib
* mattip off
TheAdversary has quit [Disconnected by services]
mattip has quit [Ping timeout: 246 seconds]
TheAdversary has joined #pypy
arigato has quit [Ping timeout: 255 seconds]
<LarstiQ> nanonyme: that's part of the answer, yes.
exarkun has quit [Ping timeout: 240 seconds]
exarkun has joined #pypy
marr has joined #pypy
dw has quit [Remote host closed the connection]
antocuni has joined #pypy
drolando has quit [Ping timeout: 240 seconds]
<bbot2> Retry: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/3330 [danchr: build my branch, py3.5-mac-embedding]
<jerith> rutf8.codepoint_position_at_index() doesn't like negative indexes. :-(
lritter has joined #pypy
amaury_ has joined #pypy
<LarstiQ> nanonyme: but also pandas is making incompatible changes so there's a lot of work to deal with that, "just" to use pypy
<LarstiQ> which I'm still interested in doing, but it's not a business priority
dw has joined #pypy
<tibkiss> mattip: cython 0.27.1 is fine, but i cannot easily move to pandas 0.20
antocuni has quit [Ping timeout: 248 seconds]
<tibkiss> mattip: any hint how to start debug this issue? i'm willing to get my hands dirty ;)
<LarstiQ> tibkiss: afaik that was pandas using the Python C API in an unsupported way, fixed in newer pandas
<tibkiss> thanks, that's a good hint
<tibkiss> i'll dig in pandas then and try to backport
<LarstiQ> tibkiss: look for commits with matti's name on them ;)
<tibkiss> thx!
<nedbat> is there something i can do to encourage the creation of pypy3 mac builds? Why the asymmetry with pypy2 on the downloads page?
amaury_ has quit [Ping timeout: 240 seconds]
<cfbolz> nedbat: pypy3 is still in beta. one of the missing features is support for more OSes
<LarstiQ> was it so that the mac buildbot needed more love?
<cfbolz> yes
jcea has joined #pypy
exarkun has quit [Ping timeout: 255 seconds]
exarkun has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/3331 [danchr: build my branch, py3.5-mac-embedding]
<bbot2> Retry: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/3331 [danchr: build my branch, py3.5-mac-embedding]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/3332 [danchr: build my branch, py3.5-mac-embedding]
<bbot2> Retry: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/3332 [danchr: build my branch, py3.5-mac-embedding]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/3333 [danchr: build my branch, py3.5-mac-embedding]
<danchr> hmm, the mac builder doesn't seem to do terribly well…
<danchr> nedbat: I've been working on it; currently the main issue is that PyPy3 has extra build requirements
<danchr> nedbat: FWIW MacPorts has binary packages available for both PyPy2 and PyPy3
tnorth has quit [Ping timeout: 248 seconds]
tibkiss has quit [Ping timeout: 260 seconds]
exarkun has quit [Ping timeout: 255 seconds]
exarkun has joined #pypy
raynold has quit [Quit: Connection closed for inactivity]
<nedbat> danchr: if you need extra hands, let me know, i'll put the word out.
<danchr> for now, some feedback to PR 571 would be nice :)
<danchr> …and a builder that didn't fail with “slave lost” would also make the whole thing more pleasant
<danchr> nedbat: ^
<kenaan> jerith unicode-utf8 3e28fa9641ac /pypy/objspace/std/: Some more unicode methods.
<danchr> (essentially, the branch adds support to package.py for downloading and building all relevant dependencies — although not Tk — and linking statically against them)
<danchr> this works well for e.g. lzma/xz, but not so much for OpenSSL/LibreSSL where you need a full install to get the root CAs
<danchr> instead, I took a peak at Apple's patch for letting OpenSSL fall back to the keychain roots, and wrote something similar using public APIs
<danchr> since distributing a full set of CAs seems kind of out-of-scope for PyPy
<danchr> actually, Tk is probably fine anyway since it's distributed with OS X
<jerith> Is there a particular reason homebrew builds pypy instead of downloading the OS X binary?
<jerith> Alex_Gaynor: GitHub says you did the last two updates. Do you perhaps know?
<Alex_Gaynor> jerith: Homebrew's policy is to build from source
<jerith> And then host their own binaries for "supported platforms", I guess.
<Alex_Gaynor> Correct, their CI builds binaries and it downloads them
<jerith> "Unsupported as of September 2017" -- the OS version I'm running. :-(
arigato has joined #pypy
tnorth has joined #pypy
forgottenone has quit [Quit: Konversation terminated!]
forgottenone has joined #pypy
ube has joined #pypy
tormoz has joined #pypy
forgottenone has quit [Ping timeout: 248 seconds]
ronan__ has joined #pypy
ronan has quit [Read error: Connection reset by peer]
<kenaan> arigo cpyext-avoid-roundtrip 6d880cc2b4d6 /pypy/module/cpyext/: (antocuni, arigo) Hack around: add the @c_only decorator that makes it possible to write a function...
<kenaan> arigo cpyext-avoid-roundtrip 48682b264cfe /pypy/module/cpyext/api.py: (antocuni, arigo) fix translation (1st step?)
<kenaan> jerith unicode-utf8 76983639ace6 /pypy/objspace/std/unicodeobject.py: Almost all objspace/std tests pass now.
<jerith> fijal: All but two of the tests in pypy/objspace/std pass now.
<jerith> The two that fail are unicode dict strategies (which you or someone commented out) and something with 'assert False, "unimplemented"' in listobject.
<jerith> So I think I'm done with this for now.
tnorth has quit [Ping timeout: 258 seconds]
<jerith> I'll ping you later if I have time to hack on this again, but that probably won't happen for a few weeks.
<nanonyme> LarstiQ, fair enough, sounds like a practical point of view
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/3333 [danchr: build my branch, py3.5-mac-embedding]
<nedbat> danchr: i have no expertise to help with that PR :(
ronan__ is now known as ronan
<arigato> jerith: yay
* arigato dinner
arigato has quit [Quit: Leaving]
kolko has joined #pypy
drolando has joined #pypy
ronan has quit [Ping timeout: 240 seconds]
drolando has quit [Ping timeout: 240 seconds]
tnorth has joined #pypy
ube has quit [Quit: Konversation terminated!]
kanaka has quit [Remote host closed the connection]
exarkun has quit [Ping timeout: 260 seconds]
exarkun has joined #pypy
tnorth has quit [Ping timeout: 258 seconds]
forgottenone has joined #pypy
amaury_ has joined #pypy
tnorth has joined #pypy
drolando has joined #pypy
tnorth has quit [Ping timeout: 258 seconds]
forgottenone has quit [Read error: Connection reset by peer]
raynold has joined #pypy
Garen has quit [Read error: Connection reset by peer]
Garen has joined #pypy
mattip has joined #pypy
mattip has quit [Ping timeout: 246 seconds]
exarkun has quit [Ping timeout: 246 seconds]
exarkun has joined #pypy
cloudyplain has joined #pypy
cloudyplain has quit [Remote host closed the connection]
ronan has joined #pypy
<kenaan> arigo extradoc 5d964bc7add5 /planning/cpyext.txt: to-do for cpyext
antocuni has joined #pypy
inhahe_ has quit []
inhahe_ has joined #pypy
ronan has quit [Ping timeout: 240 seconds]
exarkun has quit [Ping timeout: 240 seconds]
exarkun has joined #pypy
ronan has joined #pypy
squeaky_pl has joined #pypy
altan_ozlu has joined #pypy
<altan_ozlu> hi
<altan_ozlu> I’d like to work on functional python with unsafe pypy and i’m kinda newbie at pypy&rpython
TheAdversary has quit [Ping timeout: 240 seconds]
altan_ozlu has quit [Remote host closed the connection]
tav` has joined #pypy
tav has quit [Ping timeout: 240 seconds]
tav` is now known as tav
<kenaan> antocuni cpyext-nowrapper aae2bc78be74 /pypy/module/cpyext/: (antocuni, ronan): make Py_IncRef no_gc=True, rewrite incref not to take the space
<kenaan> antocuni cpyext-nowrapper 0fd504cab8d9 /pypy/module/cpyext/: finally, this no longer needs the space
<kenaan> antocuni cpyext-nowrapper 32f97b462003 /pypy/module/cpyext/dictobject.py: forgot to save and commit this change
<kenaan> antocuni cpyext-nowrapper 194a4564f528 /pypy/module/cpyext/: call directly ll_type_allocate from here, bypassing the space
<kenaan> antocuni cpyext-nowrapper aa3ffaa3a670 /pypy/module/cpyext/object.py: this was supposed to continue, not to return; it's 'funny' that tests pass anyway :-/
<kenaan> antocuni cpyext-nowrapper 2754d331493b /pypy/module/cpyext/object.py: this is no longer needed
<kenaan> antocuni cpyext-nowrapper ab603c05de2d /pypy/module/cpyext/: (antocuni, ronan): try to avoid using the space inside PyErr_NoMemory, so that we can later declare it ...
<kenaan> antocuni cpyext-nowrapper e088311fc427 /pypy/module/cpyext/pyobject.py: (antocuni, ronan): try to fix translation
<kenaan> antocuni cpyext-avoid-roundtrip e5413301904e /pypy/module/cpyext/: implement _PyObject_New, _PyObject_NewVar and _PyObject_GC_New in C
mattip has joined #pypy
lritter has quit [Ping timeout: 240 seconds]
<kenaan> antocuni cpyext-avoid-roundtrip a7a6b42a7803 /pypy/module/cpyext/test/test_bytesobject.py: now the signature of _PyObject_NewVar returns PyVarObject*, as CPython; previously, it returned P...
antocuni has quit [Ping timeout: 240 seconds]
mattip has quit [Quit: bye]
mattip has joined #pypy
drolando has quit [Ping timeout: 248 seconds]
danieljabailey has quit [Quit: ZNC 1.6.4+deb1 - http://znc.in]
danieljabailey has joined #pypy
exarkun has quit [Ping timeout: 240 seconds]
exarkun has joined #pypy
marr has quit [Ping timeout: 255 seconds]