It would require some Windows system on another partition and would only work for pure Python programs. In version 1.4 we had build in some support for this, but it showed to work only half. You may also want to have a look at this thread in the mailinglist. Please use Wine for this, PyInstaller runs fine in Wine. Can I use PyInstaller as a cross-compiler?Ĭan I package Windows binaries while running under Linux?.The file name extension is irrelevant here.Īccording to the PyInstall FAQ you cannot use it to cross-compile for different platforms either, but running PyInstall inside Wine is supposed to achieve what you want: To create a multiprogram bundle with merged common modules.Obviously the binary executable generated by PyInstaller on Linux only runs on Linux and not on other operating systems like Windows.To add Python run-time options to the executable.To include run-time libraries that are unknown to PyInstaller.Modification of the spec file is not needed except in few cases where it is useful, when we want to: The spec file is an executable python code that tells PyIstaller how to process our Python script. Now there are 3 important elements of using the PyInstaller:Ī Spec file, short for specification file is the first file that is built after the execution of pyinstaller program.py. exe file with the same name as the given python script name. A folder named dist will also be created which contains a.A build folder is created which contains some log files and working files.Creates a program.spec file which contains the information about the files that should be packed up.PyInstaller analyzes our code and does the following.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |