Re: [Pyobjc-dev] [Pythonmac-SIG] py2app release delayed
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2016-12-28 18:50:07
|
<html><head></head><body dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 27 Dec 2016, at 22:38, Chris Barker <<a href="mailto:chr...@no..." class="">chr...@no...</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote">On Tue, Dec 27, 2016 at 11:36 AM, Ronald Oussoren <span dir="ltr" class=""><<a href="mailto:ron...@ma..." target="_blank" class="">ron...@ma...</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">As an aside to this: I’m considering to remove the site-packages.zip file from the app bundle and store everything outside off zipfiles. A lot of code works inside zipfiles, but there are too many exceptions and with the transition from eggs to wheels even less packages will care to document whether or not they work with their code in zipfiles. </div></div></blockquote><div class=""><br class=""></div><div class="">I think this is a good idea -- these days, size really only matters when you're shipping the app, not when it's on disk (or SSD) -- so why bother with the zip?</div></div></div></div></div></blockquote><div><br class=""></div>Speed (loading from zipfiles tends to be slightly faster), and slightly fewer opportunities of other tools to mess up. People also tend to like the fact that code is more hidden from users. </div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class=""><br class=""></div><div class=""> > I have an issue about copying enough information into the application to ensure pkg_resources.require works, but haven’t gotten around to doing the work for that because I don’t need the feature myself. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><br class=""></div><div class="">AFAIK pkg_resources should work for accessing datafiles though. Could you file a bug for the pytz problem on py2app’s tracker? </div></div></blockquote><div class=""><br class=""></div><div class="">pkg_resources is a pain in general, and particularly always has been with py2app and the like.</div></div></div></div></div></blockquote><div><br class=""></div>That’s not my experience, and I’ve tried to ensure that using pkg_resources to access resources in the current python package would work as that solves the problem w.r.t. zipping data files for at least some packages.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class=""><br class=""></div><div class="">but I've usually gotten it to work OK by explicitly listing the package to be included, so that py2app will bundle the whole thing.</div></div></div></div></div></blockquote><div><br class=""></div>I generally consider the need to explicitly list packages to be included as a bug in py2app, that is I strive to make py2app comprehensive enough to automatically include enough stuff in the app bundles. Py2app obviously isn’t anywhere near that at the moment :-(</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class=""><br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><blockquote type="cite" class=""><div class=""><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><div class=""><br style="font-family:Monaco" class=""><span style="font-family:Monaco" class="">It seems that py2app will package up all the files in a package, not just the</span><br style="font-family:Monaco" class=""><span style="font-family:Monaco" class="">.py files. Is that the algorithm that is used?</span></div></div></div></blockquote><div class=""><br class=""></div>That’s correct. All files in the directory of a python package are assumed to be important. </div></div></blockquote><div class=""><br class=""></div><div class="">which is why it usually works OK for things like pytz. :-(</div></div></div></div></div></blockquote><div><br class=""></div>That’s intentional.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class=""><br class=""></div><div class="">-CHB</div><div class=""><br class=""></div></div><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><br class="">Christopher Barker, Ph.D.<br class="">Oceanographer<br class=""><br class="">Emergency Response Division<br class="">NOAA/NOS/OR&R (206) 526-6959 voice<br class="">7600 Sand Point Way NE (206) 526-6329 fax<br class="">Seattle, WA 98115 (206) 526-6317 main reception<br class=""><br class=""><a href="mailto:Chr...@no..." target="_blank" class="">Chr...@no...</a></div> </div></div> ------------------------------------------------------------------------------<br class="">Check out the vibrant tech community on one of the world's most <br class="">engaging tech sites, <a href="http://slashdot.org/" class="">SlashDot.org</a>! <a href="http://sdm.link/slashdot_______________________________________________" class="">http://sdm.link/slashdot_______________________________________________</a><br class="">Pyobjc-dev mailing list<br class=""><a href="mailto:Pyo...@li..." class="">Pyo...@li...</a><br class="">https://lists.sourceforge.net/lists/listinfo/pyobjc-dev<br class=""></div></blockquote></div><br class=""></div></body></html> |