Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyInstaller: how to create multiple programs in one folder?

I'm developing a Python package and have about 10 demo Python scripts that show its capabilities.

I want to distribute the demo scripts with PyInstaller: create 10 exe files and put them in one folder with all libraries they depend on.

Cannot you tell me, how can it be done?

like image 609
Felix Avatar asked Apr 06 '17 14:04

Felix


People also ask

How do I create a folder in PyInstaller?

At least for pyinstaller 4.2 the datas field need to be added as a tuple. If you want to add multiple folders it needs to be something like: ... datas = [('test/dir', 'test/dir'),('test2/dir', 'test2/dir')] ...


1 Answers

This feature is present in pyinstaller, but unfortunately it is broken in since version 3.0

This bug report states it will not be included in the 3.4 release either.

like image 140
Ber Avatar answered Oct 04 '22 00:10

Ber