OK; here are three small files that can be used to demonstrate the problem
(attached); these can be placed in the buildtests/libraries directory.  The
proper output of the script is just to read tinysample.tiff and write
tinysample.png.

Then

python runtests.py libraries/tests_PIL

and the distribution is then in

libraries/dist/test_PIL

Note that the test will pass, if you have PIL installed, because imports
"leak" through to your installed python.  [To prove this, stick a print
statement at the top of TiffImagePlugin.py, which exists wherever PIL is,
and run the executable].  However, if you take the distro to some other
machine that does not have PIL, test_PIL will not work because it cannot
find TiffImagePlugin (see the first post in this thread for the reason).



On Sat, Nov 19, 2011 at 9:59 AM, Martin Zibricky <[email protected]>wrote:

> Daniel Hyams píše v Pá 18. 11. 2011 v 21:19 -0500:
> > There are obviously a couple of things I can do to hack a solution
> > (either copy the files as data files, or just explicitly importing
> > each plugin that i need somewhere will work, I think).  But I figured
> > that someone else would run into this sooner or later.
>
> Could you please create some PIL test cases which would be part of
> buildtests in pyinstaller?
>
> --
> You received this message because you are subscribed to the Google Groups
> "PyInstaller" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pyinstaller?hl=en.
>
>


-- 
Daniel Hyams
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Attachment: test_PIL.py
Description: Binary data

<<attachment: tinysample.tiff>>

Attachment: test_PIL.spec
Description: Binary data

Reply via email to