Closed ma91n closed 2 years ago
make build
$ make build pyinstaller --onefile --name usqlfmt --icon=image/uroboroSQL_icon.ico python/uroborosqlfmt/api.py 78 INFO: PyInstaller: 5.3 78 INFO: Python: 3.8.2 89 INFO: Platform: Linux-5.15.57.1-microsoft-standard-WSL2-x86_64-with-glibc2.29 96 INFO: wrote /mnt/c/Users/manoj/workspace/fork/uroboroSQL-formatter/usqlfmt.spec 102 INFO: UPX is available. 136 INFO: Extending PYTHONPATH with paths ['/mnt/c/Users/manoj/workspace/fork/uroboroSQL-formatter/python'] 625 INFO: checking Analysis 650 INFO: Building because inputs changed 650 INFO: Initializing module dependency graph... 656 INFO: Caching module graph hooks... 667 INFO: Analyzing base_library.zip ... 3963 INFO: Processing pre-find module path hook distutils from '/home/mano/.local/lib/python3.8/site-packages/PyInstaller/hooks/pre_find_module_path/hook-distutils.py'. 3964 INFO: distutils: retargeting to non-venv dir '/usr/lib/python3.8' 6309 INFO: Caching module dependency graph... 6617 INFO: running Analysis Analysis-00.toc 6656 INFO: Analyzing /mnt/c/Users/manoj/workspace/fork/uroboroSQL-formatter/python/uroborosqlfmt/api.py 7407 INFO: Processing module hooks... 7407 INFO: Loading module hook 'hook-heapq.py' from '/home/mano/.local/lib/python3.8/site-packages/PyInstaller/hooks'...7409 INFO: Loading module hook 'hook-pickle.py' from '/home/mano/.local/lib/python3.8/site-packages/PyInstaller/hooks'... 7410 INFO: Loading module hook 'hook-distutils.util.py' from '/home/mano/.local/lib/python3.8/site-packages/PyInstaller/hooks'... 7411 INFO: Loading module hook 'hook-distutils.py' from '/home/mano/.local/lib/python3.8/site-packages/PyInstaller/hooks'... 7421 INFO: Loading module hook 'hook-multiprocessing.util.py' from '/home/mano/.local/lib/python3.8/site-packages/PyInstaller/hooks'... 7422 INFO: Loading module hook 'hook-platform.py' from '/home/mano/.local/lib/python3.8/site-packages/PyInstaller/hooks'... 7423 INFO: Loading module hook 'hook-lib2to3.py' from '/home/mano/.local/lib/python3.8/site-packages/PyInstaller/hooks'... 7434 INFO: Loading module hook 'hook-xml.py' from '/home/mano/.local/lib/python3.8/site-packages/PyInstaller/hooks'... 7503 INFO: Loading module hook 'hook-difflib.py' from '/home/mano/.local/lib/python3.8/site-packages/PyInstaller/hooks'... 7504 INFO: Loading module hook 'hook-encodings.py' from '/home/mano/.local/lib/python3.8/site-packages/PyInstaller/hooks'... 7874 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from '/home/mano/.local/lib/python3.8/site-packages/PyInstaller/hooks'... 7875 INFO: Loading module hook 'hook-sysconfig.py' from '/home/mano/.local/lib/python3.8/site-packages/PyInstaller/hooks'... 7881 INFO: Looking for ctypes DLLs 8696 INFO: Analyzing run-time hooks ... 8699 INFO: Including run-time hook '/home/mano/.local/lib/python3.8/site-packages/PyInstaller/hooks/rthooks/pyi_rth_subprocess.py' 8703 INFO: Looking for dynamic libraries 10498 INFO: Looking for eggs 10498 INFO: Python library not in binary dependencies. Doing additional searching... 10527 INFO: Using Python library /lib/x86_64-linux-gnu/libpython3.8.so.1.0 10536 INFO: Warnings written to /mnt/c/Users/manoj/workspace/fork/uroboroSQL-formatter/build/usqlfmt/warn-usqlfmt.txt 10571 INFO: Graph cross-reference written to /mnt/c/Users/manoj/workspace/fork/uroboroSQL-formatter/build/usqlfmt/xref-usqlfmt.html 10930 INFO: checking PYZ 10954 INFO: Building because name changed 10954 INFO: Building PYZ (ZlibArchive) /mnt/c/Users/manoj/workspace/fork/uroboroSQL-formatter/build/usqlfmt/PYZ-00.pyz 11184 INFO: Building PYZ (ZlibArchive) /mnt/c/Users/manoj/workspace/fork/uroboroSQL-formatter/build/usqlfmt/PYZ-00.pyz completed successfully. 11199 INFO: checking PKG 11229 INFO: Building because name changed 11229 INFO: Building PKG (CArchive) usqlfmt.pkg 13795 INFO: Building PKG (CArchive) usqlfmt.pkg completed successfully. 13808 INFO: Bootloader /home/mano/.local/lib/python3.8/site-packages/PyInstaller/bootloader/Linux-64bit-intel/run 13808 INFO: checking EXE 13830 INFO: Rebuilding EXE-00.toc because usqlfmt missing 13830 INFO: Building EXE from EXE-00.toc 13835 INFO: Copying bootloader EXE to /mnt/c/Users/manoj/workspace/fork/uroboroSQL-formatter/dist/usqlfmt 13847 INFO: Appending PKG archive to custom ELF section in EXE 13987 INFO: Building EXE from EXE-00.toc completed successfully.
$ make build pyinstaller --onefile --name usqlfmt --icon=image/uroboroSQL_icon.ico python/uroborosqlfmt/api.py 93 INFO: PyInstaller: 5.3 93 INFO: Python: 3.9.13 111 INFO: Platform: Windows-10-10.0.22622-SP0 111 INFO: wrote C:\Users\manoj\workspace\fork\uroboroSQL-formatter\usqlfmt.spec 161 INFO: UPX is available. 176 INFO: Extending PYTHONPATH with paths ['C:\\Users\\manoj\\workspace\\fork\\uroboroSQL-formatter\\python'] 686 INFO: checking Analysis 686 INFO: Building because inputs changed 686 INFO: Initializing module dependency graph... 696 INFO: Caching module graph hooks... 716 INFO: Analyzing base_library.zip ... 4605 INFO: Processing pre-find module path hook distutils from 'C:\\Users\\manoj\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'. 4605 INFO: distutils: retargeting to non-venv dir 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\\lib' 7164 INFO: Caching module dependency graph... 7346 INFO: running Analysis Analysis-00.toc 7346 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable required by C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\python.exe 7598 INFO: Analyzing C:\Users\manoj\workspace\fork\uroboroSQL-formatter\python\uroborosqlfmt\api.py 7998 INFO: Processing module hooks... 7998 INFO: Loading module hook 'hook-difflib.py' from 'C:\\Users\\manoj\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\PyInstaller\\hooks'... 7998 INFO: Loading module hook 'hook-distutils.py' from 'C:\\Users\\manoj\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\PyInstaller\\hooks'... 7998 INFO: Loading module hook 'hook-encodings.py' from 'C:\\Users\\manoj\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\PyInstaller\\hooks'... 8458 INFO: Loading module hook 'hook-heapq.py' from 'C:\\Users\\manoj\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\PyInstaller\\hooks'... 8458 INFO: Loading module hook 'hook-multiprocessing.util.py' from 'C:\\Users\\manoj\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\PyInstaller\\hooks'... 8458 INFO: Loading module hook 'hook-pickle.py' from 'C:\\Users\\manoj\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\PyInstaller\\hooks'... 8458 INFO: Loading module hook 'hook-platform.py' from 'C:\\Users\\manoj\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\PyInstaller\\hooks'... 8458 INFO: Loading module hook 'hook-sysconfig.py' from 'C:\\Users\\manoj\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\PyInstaller\\hooks'... 8458 INFO: Loading module hook 'hook-xml.py' from 'C:\\Users\\manoj\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\PyInstaller\\hooks'... 8538 INFO: Looking for ctypes DLLs 8548 INFO: Analyzing run-time hooks ... 8552 INFO: Including run-time hook 'C:\\Users\\manoj\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_subprocess.py' 8552 INFO: Looking for dynamic libraries 9451 INFO: Looking for eggs 9451 INFO: Using Python library C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\python39.dll 9451 INFO: Found binding redirects: [] 9461 INFO: Warnings written to C:\Users\manoj\workspace\fork\uroboroSQL-formatter\build\usqlfmt\warn-usqlfmt.txt 9492 INFO: Graph cross-reference written to C:\Users\manoj\workspace\fork\uroboroSQL-formatter\build\usqlfmt\xref-usqlfmt.html 9545 INFO: checking PYZ 9545 INFO: Building because name changed 9545 INFO: Building PYZ (ZlibArchive) C:\Users\manoj\workspace\fork\uroboroSQL-formatter\build\usqlfmt\PYZ-00.pyz 9875 INFO: Building PYZ (ZlibArchive) C:\Users\manoj\workspace\fork\uroboroSQL-formatter\build\usqlfmt\PYZ-00.pyz completed successfully. 9886 INFO: checking PKG 9886 INFO: Building because name changed 9886 INFO: Building PKG (CArchive) usqlfmt.pkg 11699 INFO: Building PKG (CArchive) usqlfmt.pkg completed successfully. 11699 INFO: Bootloader C:\Users\manoj\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe 11699 INFO: checking EXE 11699 INFO: Building because name changed 11699 INFO: Building EXE from EXE-00.toc 11699 INFO: Copying bootloader EXE to C:\Users\manoj\workspace\fork\uroboroSQL-formatter\dist\usqlfmt.exe.notanexecutable 11719 INFO: Copying icon to EXE 11719 INFO: Copying icons from ['C:\\Users\\manoj\\workspace\\fork\\uroboroSQL-formatter\\image\\uroboroSQL_icon.ico'] 11813 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes 11813 INFO: Writing RT_ICON 1 resource with 1384 bytes 11813 INFO: Writing RT_ICON 2 resource with 1736 bytes 11814 INFO: Writing RT_ICON 3 resource with 2216 bytes 11814 INFO: Writing RT_ICON 4 resource with 3752 bytes 11815 INFO: Writing RT_ICON 5 resource with 5672 bytes 11815 INFO: Writing RT_ICON 6 resource with 19496 bytes 11815 INFO: Writing RT_ICON 7 resource with 31750 bytes 11815 INFO: Copying 0 resources to EXE 11815 INFO: Embedding manifest in EXE 11821 INFO: Updating manifest in C:\Users\manoj\workspace\fork\uroboroSQL-formatter\dist\usqlfmt.exe.notanexecutable 11932 INFO: Updating resource type 24 name 1 language 0 11932 INFO: Appending PKG archive to EXE 11972 INFO: Fixing EXE headers 14124 INFO: Building EXE from EXE-00.toc completed successfully.
python/enum は Jython(Python2.7) で動かすために必要
Summary
make build
で実行バイナリを生成するようにしましたEnvironment
Linux
Windows(Git bash)