However, I will look into the possibilities of using a Docker container, thanks for the tip!Īnd yes, I have already experienced the pain of fruitless Biopython questioning on StackExchange and StackOverflow, which is why I'm surprised that my question would be marked as off topic here - when Biopython and how to make it run should be a relevant topic here. ![]() exe, which is smoothing the user experience (people who will be using the script are not bioinformaticists).įor now, I've partially solved the problem by separating the script into two, where the first part requires Biopython libraries and therefore can be executed only via command line with Python installed, and the second part, which uses standard libraries, is packed into. Setting up a VM, while it might be functional, would go against the primary intentions of why I'm trying to pack the script into. Despite its name PyInstaller doesnt actually create installers. The user can run the packaged app without installing a Python interpreter or any modules. I was afraid that indeed might be the case, since I've seen that even in the Biopython mailing list, nobody came up with any truly working solution. PyInstaller bundles a Python application and all its dependencies into a single package, on Windows, macOS and Linux. Also, after each rerun of Pyinstaller the 'dist' directory is completely rewritten, so you must re-add in our case Renesas_logo.gif to the dist folder.Thank you for your reply. ![]() OBSERVE! Any files used by the executable must also be placed inside the 'dist' directory. If successfiul, the executable will be inĬ:\Python27\pyinstaller-ver-x.y\Renesas_libusb_host_gui\dist\Renesas_libusb_host_gui It will do the following for you, so you should not need to do these steps yourself:Ĭ:\Python27\pyinstaller-ver-x.y>python Makespec.py -onefile -d Renesas_libusb_host_gui.pyĬ:\Python27\pyinstaller-ver-x.y>python Build.py Renesas_libusb_host_gui\Renesas_libusb_host_gui.spec ![]() >C:\Python27\pyinstaller-ver-x.y>python pyinstaller.py Renesas_libusb_host_gui.pyĪnswer 'y' to overwrite if asked. At Renesas Electronics we used Pyinstaller with our LibUSB package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |