Hi Hartmut,

I tried to follow your suggestion and setup a virtualenv containing just the modules, that are allowed to be auto-discovered.

First error message, that I get is:
Error: PyInstaller for Python 2.6+ on Windows needs pywin32.
Please install from http://sourceforge.net/projects/pywin32/

How can I install pywin32 in a virtualenv?

PLease see below a few success less attempts:
(mypy) d:\>pip install pywin32
Downloading/unpacking pywin32
  Could not find any downloads that satisfy the requirement pywin32
  Some externally hosted files were ignored (use --allow-external pywin32 to 
allow).
Cleaning up...
No distributions at all found for pywin32
Storing debug log for failure in C:\Users\gelonida\pip\pip.log

(mypy) d:\>pip install --allow-external pywin32 pywin32
Downloading/unpacking pywin32
  Could not find any downloads that satisfy the requirement pywin32
  Some insecure and unverifiable files were ignored (use --allow-unverified 
pywin32 to allow).
Cleaning up...
No distributions at all found for pywin32
Storing debug log for failure in C:\Users\gelonida\pip\pip.log


(mypy) d:\>pip install --allow-external pywin32 --allow-unverified pywin32 
pywin32
Downloading/unpacking pywin32
  Could not find any downloads that satisfy the requirement pywin32
Cleaning up...
No distributions at all found for pywin32
Storing debug log for failure in C:\Users\gelonida\pip\pip.log




On 09/20/2014 06:30 PM, Hartmut Goebel wrote:
Am 20.09.2014 06:09, schrieb Gelonida G:
Thus my question of how to tell pyinstaller to not 'autodiscover'
certain conditional imports and its dependencies


One way is to use a virtual env containing onle the required modules.

Or you can manipulate result of the Analysis() call in the .spec-file,
see <http://pythonhosted.org/PyInstaller/#id38>

--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP
Information Security Management, Security Governance, Secure Software
Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog:
http://www.goebel-consult.de/blog/einladung-von-der-friedrich-ebert-stiftung

Kolumne:
http://www.cissp-gefluester.de/2011-08-horrorszenario-bring-your-own-device

Goebel Consult ist Mitglied bei http://www.7-it.de/



--
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to