cfbolz changed the topic of #pypy to: #pypy PyPy, the flexible snake https://pypy.org | IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end and https://libera.irclog.whitequark.org/pypy | the pypy angle is to shrug and copy the implementation of CPython as closely as possible, and staying out of design decisions
jinsun has quit [Read error: Connection reset by peer]
joshszep has quit [Ping timeout: 256 seconds]
joshszep_ has joined #pypy
catern- has joined #pypy
joshszep_ has quit [Read error: Connection reset by peer]
joshszep has joined #pypy
catern has quit [Remote host closed the connection]
joshszep_ has joined #pypy
joshszep has quit [Ping timeout: 268 seconds]
joshszep_ has quit [Read error: Connection reset by peer]
jcea has quit [Ping timeout: 246 seconds]
joshszep has joined #pypy
joshszep has quit [Ping timeout: 255 seconds]
joshszep has joined #pypy
joshszep_ has joined #pypy
joshszep has quit [Ping timeout: 276 seconds]
Techcable has quit [Ping timeout: 250 seconds]
joshszep_ has quit [Read error: Connection reset by peer]
joshszep has joined #pypy
<fijal> this is glyph library for signing python stuff for running on OS X, someone might want to investigate if we can make pypy signed
<glyph> fijal: does pypy build as a framework?
<fijal> I don't think so?
<glyph> fijal: so, you can sign pypy as an executable, in the same way that python.org does, but my tool will probably not be very interesting for you
<fijal> "ah"
<glyph> you don't have a bundle, so you will need to submit the individual executable file
<fijal> the problem is a myriad of .so that come with it
<glyph> you can … probably just ignore those
<fijal> what do you mean "ignore"? They certainly explode when I try to make an exception
<fijal> (like I have to click in settings every individual extension module)
<glyph> the only thing that signing gets you on a CLI tool is that you get to skip this: https://dsc.cloud/6282b4/pb-BiWUhF15R3.png
<glyph> and you don't need to tell your users to dequarantine the binary
<fijal> yeah, that would be fantastic
<fijal> running pypy is a mess, because it does that every time it loads an extension .so
<glyph> fijal: I could try signing it and see what happens
<fijal> so not every run is the same (loads the same sos)
<glyph> hmm
<glyph> python avoids this somehow
<fijal> and pip explodes horrendously
<glyph> aha
<glyph> com.apple.security.cs.disable-library-validation
<glyph> looks like you just need to add some entitlements
<glyph> fijal: can you point me at a binary to sign?
Techcable has joined #pypy
lehmrob has quit [Ping timeout: 256 seconds]
joshszep has quit [Ping timeout: 246 seconds]
joshszep_ has joined #pypy
<glyph> ugh okay I give up
<glyph> fijal: apple really wants you to package code in one of a couple of ways, and pypy is none of those ways. CPython comes in a .pkg for this reason, I think, because there's pretty much no way for me to staple a notarization ticket to either the dylib or the executable
<glyph> I tried submitting the files in a zip and it accepted them but then it apparently did nothing.
<glyph> even with wildly permissive memory and linking entitlements it still gives me the "library load disallowed by system policy" error at startup
<glyph> you should probably talk to ned deily about this, he is the one who knows how cpython's magic is set up
<fijal> glyph: ok, well, I don't think I'm happy to invest in pypy packaging at this stage, thanks though!
<glyph> fijal: oh hahaha I bet you could fix this with a shell script wrapper
joshszep_ has quit [Read error: Connection reset by peer]
joshszep has joined #pypy
<glyph> fijal: here; move 'pypy3.9' to 'pypy3.9.real', replace the binary with this https://gist.github.com/glyph/57622df0ee1e452537b4a49f461c7e74
<glyph> problem solved
<glyph> maybe some edge cases to debug around virtualenv or something ther
<glyph> e
<glyph> but shell scripts don't require signing because /bin/sh is already signed yolooooooooo
<glyph> alternately, remove the 'download' link on the website for macOS, replace it with a command to copy paste that says `curl -LO https://downloads.python.org/pypy/pypy3.9-v7.3.11-macos_arm64.tar.bz2` - anything downloaded manually at a command-line won't get the quarantine bit set in the first place, and the command will run unperturbed
<fijal> eh I wish matti saw this
lritter has joined #pypy
lehmrob has joined #pypy
<tumbleweed> lolwtf
<tumbleweed> I mean, I understand that they have to start somewhere, but still lol
jcea has joined #pypy
Dejan has joined #pypy
<jean-paul[m]> fijal: If you made it possible to develop mobile apps in Python with PyPy then you'd probably get a lot of adoption
<jean-paul[m]> A lot of Python programs would like to be able to do mobile but practically they have to abandon Python for that right now
<jean-paul[m]> (I might go on to implore you not to do this, but maybe I won't do it in this channel)
<tumbleweed> jean-paul[m]: what do you think pypy can provide that they need?
<tumbleweed> or are you talking about building apps in rpython
<jean-paul[m]> tumbleweed: A development process that is better than Kivy, either by eliminating the need for third-party extension modules or by providing a build process for them that actually works.
<jean-paul[m]> (Definitely not RPython, I don't think you'll get any appreciable uptake on an offering for application development in RPython)
<tumbleweed> phew re rpython :)
<jean-paul[m]> Kivy is pretty much the most streamlined CPython-for-mobile toolkit and it is not very streamlined and it is built on a huge pile of hacks and it doesn't look like either of those things are going to change any time soon.
<tumbleweed> you think being able to use more pure-python would allow simplifying things enough to increase adoption?
<tumbleweed> ah, kivy leans heavily on cython. If I knew that, I'd forgotten
<jean-paul[m]> tumbleweed: I think that will help but I think PyPy would also need to make building extension modules easier
<jean-paul[m]> It seems like, in practice, the Python ecosystem has not hailed PyPy as a solution to writing C. There are still lots of extension modules written in C. And now, in Rust too.
<jean-paul[m]> But that's okay, cross-compiling is a thing. It's just ... not really a thing for CPython.
<jean-paul[m]> (It is if you are a compilers expert and sink 80 hours into it, but that excludes most developers)
<tumbleweed> this seems like something that could be resolved with a few build tools
joshszep_ has joined #pypy
joshszep has quit [Ping timeout: 276 seconds]
lritter has quit [Ping timeout: 246 seconds]
pbsds6 has joined #pypy
pbsds has quit [Ping timeout: 250 seconds]
pbsds6 is now known as pbsds
derpydoo has quit [Ping timeout: 276 seconds]
joshszep_ has quit [Read error: Connection reset by peer]
joshszep has joined #pypy
lehmrob has quit [Ping timeout: 260 seconds]
joshszep has quit [Quit: -a- Connection Timed Out]
joshszep has joined #pypy
joshszep_ has joined #pypy
joshszep has quit [Ping timeout: 246 seconds]
joshszep_ has quit [Read error: Connection reset by peer]
joshszep has joined #pypy
joshszep has quit [Quit: -a- Connection Timed Out]