On 27 Dec 2016, at 22:38, Chris Barker <chris.bar...@noaa.gov> wrote:

On Tue, Dec 27, 2016 at 11:36 AM, Ronald Oussoren <ronaldousso...@mac.com> wrote:
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. 

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?

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. 



 > 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. 

AFAIK pkg_resources should work for accessing datafiles though. Could you file a bug for the pytz problem on py2app’s tracker? 

pkg_resources is a pain in general, and particularly always has been with py2app and the like.

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.


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.

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 :-(



It seems that py2app will package up all the files in a package, not just the
.py files. Is that the algorithm that is used?

That’s correct. All files in the directory of a python package are assumed to be important. 

which is why it usually works OK for things like pytz. :-(

That’s intentional.


-CHB


--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

chris.bar...@noaa.gov
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot_______________________________________________
Pyobjc-dev mailing list
pyobjc-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to