Sadless74 / googletransitdatafeed

Automatically exported from code.google.com/p/googletransitdatafeed
0 stars 0 forks source link

zoneinfo not included in py2exe library.zip #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sometime between pytz-2008a and pytz-2008i common_timezones started to
include only names for which a zoneinfo is found. The zoneinfo directory is
installed in the same directory as the pytz/__init__.py file and is loaded
using pkg_resources.resource_stream. These files are not copied to
library.zip so common_timezones is empty when read in the py2exe executable.

Our options:
- copy common_timezones to a different file in setup.py and use this file
instead of pytz
- add zoneinfo to library.zip after each build
- add some kind of zip_data_file option to py2exe
- use an existing hack work-around for eggs in py2exe
- add egg support to py2exe
- make an installer that includes the data files and fiddle with pytz to
make it work

I'm going to go with add zoneinfo to library.zip after each build because
an initial tests suggests it should be a fairly simple change to setup.py

"[Py2exe-users] pkg_resources.resource_stream loads from library.zip, so
how to place files in there?" 2008/08
http://www.py2exe.org/index.cgi/ExeWithEggs

Original issue reported on code.google.com by tom.brow...@gmail.com on 23 Nov 2008 at 5:00

GoogleCodeExporter commented 9 years ago

Original comment by tom.brow...@gmail.com on 25 Nov 2008 at 7:24