pyinstaller-smoke.pyc
1 o 2 Z��c� � @ s 3 d Z ddlZe�dd��d�d Zej�e� ee eej ej� e� e� 4 e�e�� ej�e� ej� e� e�ej�ddd�� e�ej�ddd�� ej�e�d ej e�d 5 � d 6 �� ej�e�d�ej�d�dk ��� ej�g d���� ed � dS )a� A crude *bit of everything* smoke test to verify PyInstaller compatibility. 7 8 PyInstaller typically goes wrong by forgetting to package modules, extension 9 modules or shared libraries. This script should aim to touch as many of those 10 as possible in an attempt to trip a ModuleNotFoundError or a DLL load failure 11 due to an uncollected resource. Missing resources are unlikely to lead to 12 arithmetic errors so there's generally no need to verify any calculation's 13 output - merely that it made it to the end OK. This script should not 14 explicitly import any of numpy's submodules as that gives PyInstaller undue 15 hints that those submodules exist and should be collected (accessing implicitly 16 loaded submodules is OK). 17 18 � Ng �?g $@)� r � � 19 �d y @� g �?)� r � z 20 I made it!)�__doc__�numpy�np�arange�reshape�a�linalg�det�T�inv�sin�exp�svd�eigh�unique�random�randint�sort�uniform�fft�pi�ma�masked_array�rand�sum� 21 polynomial�Legendre�roots�print� r&