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
_whitelogger has joined #pypy
todda7 has joined #pypy
nedbat has quit [Quit: ZNC - http://znc.in]
tos9_ has joined #pypy
tos9 has quit [Ping timeout: 272 seconds]
tos9_ is now known as tos9
nedbat has joined #pypy
xcm has quit [Read error: Connection reset by peer]
xcm has joined #pypy
jcea has quit [Quit: jcea]
xcm is now known as Guest25617
Guest25617 has quit [Killed (weber.freenode.net (Nickname regained by services))]
xcm has joined #pypy
KindTwo has joined #pypy
KindOne has quit [Ping timeout: 272 seconds]
KindTwo is now known as KindOne
KindOne has quit [Ping timeout: 272 seconds]
KindOne has joined #pypy
Rhy0lite has quit [Quit: This computer has gone to sleep]
todda7 has quit [Ping timeout: 272 seconds]
KindOne has quit [Ping timeout: 272 seconds]
KindTwo has joined #pypy
KindTwo is now known as KindOne
andi- has quit [Remote host closed the connection]
andi- has joined #pypy
asmeurer_ has joined #pypy
asmeurer_ has quit [Quit: asmeurer_]
todda7 has joined #pypy
todda7 has quit [Ping timeout: 264 seconds]
todda7 has joined #pypy
_whitelogger has joined #pypy
jvesely has quit [Ping timeout: 265 seconds]
[Arfrever] has quit [Remote host closed the connection]
[Arfrever] has joined #pypy
oberstet has joined #pypy
18VAAUBWA has joined #pypy
_whitelogger has joined #pypy
asmeurer has joined #pypy
asmeurer has quit [Ping timeout: 246 seconds]
jvesely has joined #pypy
todda7 has quit [Ping timeout: 256 seconds]
thrnciar has joined #pypy
xcm has quit [Ping timeout: 265 seconds]
dddddd has quit [Ping timeout: 256 seconds]
xcm has joined #pypy
thrnciar has quit [Ping timeout: 264 seconds]
xcm has quit [Remote host closed the connection]
todda7 has joined #pypy
xcm has joined #pypy
danchr_ has quit [Ping timeout: 256 seconds]
Civil has quit [Ping timeout: 256 seconds]
JStoker has quit [Ping timeout: 256 seconds]
mjacob has quit [Ping timeout: 256 seconds]
Olorin has quit [Ping timeout: 256 seconds]
fangerer__ has quit [*.net *.split]
samth has quit [*.net *.split]
stillinbeta has quit [*.net *.split]
string has quit [*.net *.split]
EWDurbin has quit [*.net *.split]
jneen_ has quit [*.net *.split]
pjenvey has quit [*.net *.split]
Ninpo has quit [*.net *.split]
catern has quit [*.net *.split]
tos9 has quit [*.net *.split]
WGH has quit [*.net *.split]
pulkit25 has quit [*.net *.split]
ammar2 has quit [*.net *.split]
_whitelogger has joined #pypy
pmp-p has quit [Ping timeout: 272 seconds]
pmp-p has joined #pypy
cratuki has joined #pypy
<cratuki> Would like to recommend a change to the Overview section of the docs.
<cratuki> Put in a mention that if you are trying to reference a .so file in the current directory, you should put -L. in your extra_link_args
<cratuki> ^ This is specific to cffi (https://cffi.readthedocs.io/en/latest/overview.html)
lritter has joined #pypy
todda7 has quit [Ping timeout: 264 seconds]
BPL has joined #pypy
thrnciar has joined #pypy
dddddd has joined #pypy
todda7 has joined #pypy
thrnciar has quit [Remote host closed the connection]
jacob22 has quit [Read error: Connection reset by peer]
jacob22 has joined #pypy
todda7 has quit [Ping timeout: 246 seconds]
jcea has joined #pypy
jcea has quit [Read error: Connection timed out]
jcea has joined #pypy
todda7 has joined #pypy
<mattip> cratuki: thanks
otisolsen70 has joined #pypy
Rhy0lite has joined #pypy
otisolsen70 has quit [Quit: Leaving]
kipras has joined #pypy
Taggnostr has joined #pypy
jacob22 has quit [Read error: Connection reset by peer]
jacob22 has joined #pypy
kipras has quit [Read error: Connection reset by peer]
xcm has quit [Ping timeout: 264 seconds]
jvesely has quit [Quit: jvesely]
xcm has joined #pypy
thrnciar has joined #pypy
Rhy0lite has quit [Ping timeout: 256 seconds]
<arigo> cratuki: adding "-L." is not enough in all cases, can you elaborate more?
thrnciar has quit [Ping timeout: 256 seconds]
thrnciar has joined #pypy
<mattip> we have new failures in pypy.module._codecs.test.test_codecs on py3.7 with utf16 and surrogatepass
KindOne has quit [Ping timeout: 260 seconds]
<mattip> pytest only prints the assert failure, not the strings. I wonder if we could use __pypy__.utf8content to get failures to print more context
<cratuki> arigo: I think it is a common use-case that someone will have the .so file in the current directory.
<cratuki> In that use-case, addition of -L. allows you to access it. I thought the documentation was strong, but for the omission of this. It took me some time to work it out.
<cratuki> arigo: You write, "not enough in all cases" - what cases are you thinking of?
KindOne has joined #pypy
<arigo> as far as I remember, when you have a .so in the current directory, you need to call gcc with "-L.", but you also need to do more magic at actual import time
<tos9> LD_LIBRARY_PATH ?
<arigo> yes
<tos9> and DYLD_LIBRARY_PATH if you're lucky enough to have given apple your money
<arigo> if I've got it right, "-L" is only used by gcc to find the .so itself in order to do something with it (I'm not exactly sure what), but the path is not written in the Python C extension module that you're compiling
<arigo> when you actually import this module, then an unrelated mechanism is used to find the .so, which involves several things including the LD_LIBRARY_PATH env var
xcm has quit [Ping timeout: 256 seconds]
<arigo> (this is done by the OS, so don't confuse that with the way Python finds the .so that corresponds to a given module name, which is done by looking along sys.path---a 3rd unrelated way)
<tos9> personally I didn't expect to find any of that in the cffi docs, I expected cffi to just respect the normal ways to specify that stuff
<tos9> (in fact if anything I was probably confused as to what the use case was for cffi *having* its own way)
<tos9> though I guess extra_link_args is useful for other non-path-related arguments to the linker?
<arigo> that's not cffi's own way. extra_link_args is one of the generic '**args' that is passed straight to distutils
<arigo> (and indeed extra_link_args is just concatenated to the call to gcc when linking)
<tos9> ah. (shows you how much I know about distutils too I guess)
<arigo> this is a sufficiently messy situation that I can repeat that fact all over, and it's also written in the docs :-)
<tos9> ha
xcm has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8186 [mattip: force build, py3.7]
Rhy0lite has joined #pypy
jvesely has joined #pypy
thrnciar has quit [Remote host closed the connection]
thrnciar has joined #pypy
jvesely has quit [Read error: Connection reset by peer]
jacob22 has quit [Read error: Connection reset by peer]
jvesely has joined #pypy
<cfbolz> Wiesel!
<cfbolz> oops, wrong channel
* cfbolz waves
thrnciar has quit [Ping timeout: 246 seconds]
jacob22 has joined #pypy
jvesely has quit [Ping timeout: 256 seconds]
jvesely_ has joined #pypy
thrnciar has joined #pypy
BPL has quit [Ping timeout: 256 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8186 [mattip: force build, py3.7]
Taggnostr has quit [Ping timeout: 256 seconds]
Taggnostr has joined #pypy
BPL has joined #pypy
Taggnostr has quit [Ping timeout: 256 seconds]
Taggnostr has joined #pypy
jvesely_ has quit [Read error: Connection reset by peer]
oberstet has quit [Remote host closed the connection]
thrnciar has quit [Ping timeout: 246 seconds]
lritter has quit [Ping timeout: 256 seconds]
todda7 has quit [Ping timeout: 264 seconds]
mvantellingen has quit [*.net *.split]
lauren has quit [*.net *.split]
idnar has quit [*.net *.split]
ctismer has quit [*.net *.split]
mvantellingen has joined #pypy
idnar has joined #pypy
lauren has joined #pypy
ctismer has joined #pypy
kbtr_ has quit [*.net *.split]
Ashleee has quit [*.net *.split]
gutworth has quit [*.net *.split]
larstiq_ has quit [*.net *.split]
kbtr_ has joined #pypy
larstiq_ has joined #pypy
Ashleee has joined #pypy
gutworth has joined #pypy
toad_polo has quit [*.net *.split]
agates[m] has quit [*.net *.split]
dstufft has quit [*.net *.split]
agates[m] has joined #pypy
toad_polo has joined #pypy
dstufft has joined #pypy
simpson has quit [*.net *.split]
whitewolf has quit [*.net *.split]
salotz[m] has quit [Ping timeout: 244 seconds]
agates[m] has quit [Ping timeout: 252 seconds]
toad_polo has quit [Ping timeout: 252 seconds]
inhahe has quit [*.net *.split]
tazle has quit [*.net *.split]
mgedmin has quit [*.net *.split]
_aegis_ has quit [*.net *.split]
_aegis_ has joined #pypy
mgedmin has joined #pypy
inhahe has joined #pypy
tazle has joined #pypy
iko_ has quit [*.net *.split]
marmoute_ has quit [*.net *.split]
the_rat has quit [*.net *.split]
dmalcolm has quit [*.net *.split]
Lightsword has quit [*.net *.split]
shodan45 has quit [*.net *.split]
bbot2 has quit [*.net *.split]
trfl has quit [*.net *.split]
tumbleweed has quit [*.net *.split]
Hodgestar has quit [*.net *.split]
simpson has joined #pypy
tumbleweed has joined #pypy
iko_ has joined #pypy
the_rat has joined #pypy
dmalcolm has joined #pypy
Lightsword has joined #pypy
bbot2 has joined #pypy
shodan45 has joined #pypy
trfl has joined #pypy
Hodgestar has joined #pypy
marmoute_ has joined #pypy
the_drow[m] has quit [Ping timeout: 244 seconds]
whitewolf has joined #pypy
the_drow[m] has joined #pypy
salotz[m] has joined #pypy
agates[m] has joined #pypy
BPL has quit [Quit: Leaving]
toad_polo has joined #pypy
zmt01 has quit [Read error: Connection reset by peer]
zmt00 has joined #pypy