For additional context, this is primarily driven by trying to get pytz
included in the cx_freeze output.  The zip_includes option seems perfect
for this (since the Olson db is nicely compressible), but zip_includes ends
up requiring pkg_resources, which the output will not bundle in.



On Wed, Oct 14, 2015 at 11:36 AM, Russell Warren <r...@perspexis.com> wrote:

> I've got an application that worked well with cx_freeze until I added
> `import pkg_resources` to it.  I am unable to get pkg_resources/setuptools
> to bundle in the cx_freeze output.
>
> Is there a special method for getting cx_freeze to include setuptools?
>
> Some related links that haven't helped yet...
>
> This link indicates how to bundle into a resource with `zip_includes`, but
> it doesn't force setuptools along with it...
>
> http://stackoverflow.com/questions/10606932/cx-freeze-how-do-i-add-package-files-into-library-zip
>
> This link (distutls related, not setuptools), led me to whitelist
> "pkg_resources" in the "packages" option, but that didn't help.  cx_freeze
> is claiming an ImportError (No module named "pkg_resources"), even though I
> can import with no problem from the python REPL.
>
> This is with Python 3.4.3 on Windows, via Anaconda 2.2.0.
>
> Any help/tips appreciated!
>
> Thanks,
> Russ
>
>


-- 
Russell Warren
Perspexis Technologies Inc.

This information is confidential and intended solely for the use of the
individual or entity to whom it is addressed.
If you have received this email in error, please notify the sender
immediately.
------------------------------------------------------------------------------
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to