cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | the secret reason for us trying to get PyPy users: to test the JIT well enough that we're somewhat confident about it
wleslie has quit [Quit: ~~~ Crash in JIT!]
adamholmberg has quit [Ping timeout: 240 seconds]
dddddd has quit [Remote host closed the connection]
marky1991 has quit [Remote host closed the connection]
cjwelborn has quit [Remote host closed the connection]
mattip has quit [Ping timeout: 276 seconds]
cjwelborn has joined #pypy
mattip has joined #pypy
DIRT has quit [Ping timeout: 268 seconds]
DIRT has joined #pypy
catern has quit [Excess Flood]
infernix has quit [Ping timeout: 276 seconds]
infernix has joined #pypy
jacob22__ has joined #pypy
RemoteFo1 has joined #pypy
dmalcolm_ has joined #pypy
tazle has quit [Ping timeout: 240 seconds]
jacob22_ has quit [Ping timeout: 240 seconds]
dmalcolm has quit [Ping timeout: 240 seconds]
sthalik has quit [Ping timeout: 240 seconds]
dan- has quit [Ping timeout: 240 seconds]
bogner has quit [Ping timeout: 240 seconds]
commandoline_ has quit [Ping timeout: 260 seconds]
jerith has quit [Ping timeout: 260 seconds]
Taggnostr2 has joined #pypy
RemoteFox has quit [Ping timeout: 260 seconds]
pedronis has quit [Ping timeout: 260 seconds]
Taggnostr2 has quit [Ping timeout: 260 seconds]
kenaan has quit [Ping timeout: 260 seconds]
_habnabit has quit [Ping timeout: 260 seconds]
commandoline has joined #pypy
sthalik has joined #pypy
sthalik has quit [*.net *.split]
pedronis has joined #pypy
commandoline has quit [Changing host]
commandoline has joined #pypy
catern_ has joined #pypy
dan- has joined #pypy
jerith has joined #pypy
tazle has joined #pypy
bogner has joined #pypy
sthalik has joined #pypy
dan- has joined #pypy
dan- has quit [Changing host]
_habnabit has joined #pypy
catern_ is now known as catern
speeder39 has joined #pypy
stevenja_ has joined #pypy
stevenja_ has quit [Ping timeout: 240 seconds]
fake-name has joined #pypy
Garen_ has joined #pypy
Garen has quit [Ping timeout: 245 seconds]
DIRT has quit [Ping timeout: 240 seconds]
DIRT has joined #pypy
<mattip> something is wrong with b42a5efd4312, len(datetimeAPI_global) == 0 even after the call to
<mattip> _PyDateTime_Import, since I have a valid PyDateTimeAPI pointer
<mattip> maybe I should stick the list onto the space.cache(State) instead
<cfbolz> mattip: global lists can't be mutated, you need an indirect ion indeed
kenaan_ has joined #pypy
<kenaan_> mattip default 9003631c15df /pypy/module/cpyext/: use State in place of global variable
<mattip> cfbolz: grepping around, atexit.app_atexit has atexit_callbacks
<cfbolz> mattip: that's normal python code, not rpython, isn't it?
speeder39 has quit [Quit: Connection closed for inactivity]
<mattip> ahh, right "app_atexit". All the others are regular python too. I put in the faulty code not so long ago,
<mattip> so good thing we got a bug report and now it should work correctly
<kenaan_> wlav cppyy-packaging 814abb166218 /pypy/module/_cppyy/interp_cppyy.py: cosmetics
<kenaan_> wlav cppyy-packaging d69a3855cc3a /pypy/module/_cppyy/: minor performance improvement
altendky has quit [Quit: Connection closed for inactivity]
mattip has quit [Ping timeout: 256 seconds]
fake-name has quit [Ping timeout: 260 seconds]
<cfbolz> mattip: this is one of the super weird parts of rpython, not sure we win anything by doing that
realitix has joined #pypy
stevenja_ has joined #pypy
realitix has quit [Ping timeout: 268 seconds]
stevenja_ has quit [Ping timeout: 240 seconds]
tayfun26 has joined #pypy
inhahe__ has joined #pypy
dddddd has joined #pypy
RemoteFo1 is now known as RemoteFox
antocuni has joined #pypy
realitix has joined #pypy
DIRT has quit [Ping timeout: 265 seconds]
Guest42320 has quit [Quit: Leaving]
rubdos has quit [Ping timeout: 260 seconds]
rubdos has joined #pypy
marvin has quit [Ping timeout: 255 seconds]
antocuni has quit [Ping timeout: 260 seconds]
lesshaste has joined #pypy
marvin has joined #pypy
jsza has quit [Quit: Connection closed for inactivity]
realitix_ has joined #pypy
realitix has quit [Read error: Connection reset by peer]
realitix_ is now known as realitix
realitix has quit [Client Quit]
realitix has joined #pypy
tos9_ has joined #pypy
tos9 has quit [Ping timeout: 240 seconds]
tos9_ is now known as tos9
antocuni has joined #pypy
Rhy0lite has joined #pypy
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
tazle has quit [Quit: leaving]
tazle has joined #pypy
altendky has joined #pypy
* arigato feels responsible and hides
<arigato> in unrelated news, kickstarter is available across many EU countries now too
<arigato> (that's 3-years-old news)
crane has joined #pypy
<crane> So I'm using dockers multistage build feature where I have an image with gcc installed and copy /root/.cache to my production image and "re"-install my dependencies using the pre-compiled files. However it looks like cffi is still looking for a compiler and breaking my build. Any ideas how to fix this? I'm not the only one with this problem https://stackoverflow.com/questions/49075041/cryptography-python-docker-multistage-build
stevenja_ has joined #pypy
<arigato> crane: that's cffi's setup.py which automatically complains if it doesn't find a compiler
<crane> arigato: just looked at the code and saw the same... Is it just me or feels this wrong on modern systems?
<arigato> it certainly feels wrong on your system; I have no clue about "modern"
<crane> touché ^^
<arigato> I have no clue why you don't get the same problem with other packages
<arigato> I think it's pretty common to do the same thing as cffi's setup.py
<LarstiQ> arigato: but even with kickstarter you might run into e.g. police enforcement of the tax authority not wanting you to run a crowdfunding campaign (used to be the case in .fi)
<arigato> LarstiQ: ah, thanks. I think the switzerland rules are saner, but I can check
<arigato> crane: I can either attempt to fix it, or would be happy to accept a pull request
<arigato> I don't know how others do it but I can imagine hacks
<arigato> e.g. if setup.py doesn't find a compiler, it doesn't crash but instead builds the Extension() object with some bogus arguments that can't possibly lead to a successful compilation (assuming there is, after all, a compiler but setup.py can't find it)
<crane> arigato: hmm... I'm confused. Maybe it's because it's writing to stderr
<crane> let me check
<arigato> it crashes because of the sys.exit(1) in setup.py
<crane> I didn't followed the code so far
<crane> But then it's clear why it is failing
<arigato> yes
<crane> Can I open a bug/feature request to remove that dependency?
<arigato> yes
<crane> cool :)
<arigato> is it ok if setup.py still produces warnings if no compiler is found, even if it manages to install correctly in the end?
<crane> yep, that would also work out
<crane> but why doing this check? I mean if no functional compiler is found they can't compile anything on their system and not install a python package.
<arigato> the real check is to know if the compiler supports some functionality or not
<arigato> so, some kind of limited "configure"
<crane> hmm, yes. that sounds usefull
<crane> any restrictions when not throwing an error?
<arigato> I don't think there are more issues than "it'll get a bogus configure result for the platform", which shouldn't be used if really no compilation is occurring
<arigato> yes, seems to work
<crane> nice, you still want me to open the issue?
<arigato> no, thanks
<arigato> trying to fix it now
<crane> awesome. ^^
<crane> do me another favour and get yourself a hughe chocolate cookie ^^
<crane> Is this going to be a "hot-fix" or will it be in the next release?
<arigato> you'll will to wait for the next release I'm afraid
<arigato> s/will/need
<crane> Any timeline for this?
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
<kenaan_> arigo cffi/cffi b3b6b86cb30c /c/test_c.py: no real point in turning this warning into an error
<kenaan_> arigo cffi/cffi 68933f0ea99a /setup.py: setup.py now supports building in a context and installing in a different context with no compiler. You still ge...
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
jsza has joined #pypy
<arigato> there might be a hack to try it out now:
<arigato> copy the latest version of setup.py from the bitbucket repo
<arigato> replacing the cffi setup.py in the downloaded already-build image
<arigato> (might need to replace the version number present in this setup.py, from '1.12.0' to '1.11.5')
inhahe_ has joined #pypy
inhahe__ has quit [Ping timeout: 240 seconds]
inhahe__ has joined #pypy
inhahe has quit [Ping timeout: 276 seconds]
<crane> arigato: I used the commit in my requirement but it failed. not sure now if because of this change or other ones
<crane> but in the end it still is trying to call gcc
raynold has quit [Quit: Connection closed for inactivity]
<arigato> crane: can't help without a full log
<crane> arigato: https://dpaste.de/QY1c
<arigato> ok, that's not the latest commit
<crane> I pulled 68933f0ea99a?
<crane> or at least I thought I told pip to pull it
<arigato> it's running some older version of setup.py, that I can tell because the error message changed a bit
<arigato> I'm not too confident with pip in general, not to mention in your particular setup, so I can't help much more
<crane> I think this is more a layer8 problem ;)
<crane> Ah, pip needs the long hg commit id
<crane> arigato: https://dpaste.de/3PiG
<crane> this looks better but still trying to find gcc
<arigato> it says it's building wheels... normally this means compiling the C parts
<crane> which should be actually happened on the other image. so I'm also expecting a /root/.cache/pip/wheels/$id/cffi directory but nope...
<arigato> it's even saying "creating build/temp.linux-x86_64-2.7", so that directory was not there before, maybe
marky1991 has joined #pypy
<LarstiQ> arigato: for Switzerland there is https://www.kickstarter.com/projects/1681258897/its-magit-the-magical-git-client as prior art, I'd hope that indicates it's fine
<LarstiQ> and for finnish background, 2016 law https://www.finlex.fi/en/laki/kaannokset/2016/en20160734 and report of police claiming possible violation: http://arcticstartup.com/legal-challenges-crowdfunding-finland/
tayfun26 has quit [Quit: tayfun26]
<arigato> ok, this particular mess doesn't look very swiss (though to be sure, there are 23 different tax regulations and polices inside switzerland)
realitix has quit [Ping timeout: 268 seconds]
redj_ has joined #pypy
redj has quit [Ping timeout: 268 seconds]
<crane> arigato: I got my problem solved now. Thx for the help :)
DIRT has joined #pypy
marky1991 has quit [Ping timeout: 240 seconds]
nunatak has joined #pypy
marky1991 has joined #pypy
ronan has quit [Ping timeout: 256 seconds]
ronan has joined #pypy
stevenja_ has quit [Remote host closed the connection]
stevenja_ has joined #pypy
stevenja_ has quit [Ping timeout: 276 seconds]
oberstet has joined #pypy
rubdos has quit [Ping timeout: 276 seconds]
Rhy0lite has quit [Quit: Leaving]
stevenja_ has joined #pypy
stevenja_ has quit [Ping timeout: 260 seconds]
nunatak has quit [Quit: Leaving]
rubdos has joined #pypy
stevenja_ has joined #pypy
mattip has joined #pypy
stevenja_ has quit [Ping timeout: 240 seconds]
marky1991 has quit [Read error: Connection reset by peer]
mattip has quit [Ping timeout: 244 seconds]
dw has joined #pypy
dw has left #pypy [#pypy]
adamholmberg has quit [Remote host closed the connection]
mattip has joined #pypy
antocuni has quit [Ping timeout: 240 seconds]
oberstet has quit [Remote host closed the connection]
rubdos has quit [Ping timeout: 256 seconds]
bananabread has joined #pypy
bananabread has quit [Read error: Connection reset by peer]
rubdos has joined #pypy
rubdos has quit [Ping timeout: 240 seconds]
stevenja_ has joined #pypy
tbodt has quit [Quit: ZNC 1.6.5+deb2build2 - http://znc.in]
tbodt has joined #pypy
stevenja_ has quit [Ping timeout: 240 seconds]
inhahe_ has quit []
inhahe has joined #pypy
rubdos has joined #pypy
rubdos has quit [Ping timeout: 276 seconds]