Hello,
Firstly you certainly shouldn’t need to copy those files about. It looks like the problem is nimpy can’t read the standard lib files from the base_library.zip archive and you’re extracting them manually. You can tell PyInstaller not to use the zip by adding the kwarg noarchive=True to the a = Analysis(...) section of the main.spec file. (If you’re new to spec files - it’s just a Python script containing all the build code.) If you edit the spec you must use PyInstaller main.spec instead of PyInstaller main.py or you will lose your changes.
Assuming the above doesn’t fix your problem: You can’t reuse bits of a build in the way you’re suggesting but you can still automate them. Again, use the spec file. You could append code to the end of your spec (such as code to copy those files in) and it will run that code after every build.
Also, I recommend Markdown Here for using markdown in Google Groups.
Brénainn
Hello,
Firstly you certainly shouldn’t need to copy those files about. It looks like the problem is nimpy can’t read the standard lib files from the
base_library.ziparchive and you’re extracting them manually.
You can tell PyInstaller not to use the zip by adding the kwarg
noarchive=Trueto thea = Analysis(...)section of themain.specfile. (If you’re new to spec files - it’s just a Python script containing all the build code.) If you edit the spec you must usePyInstaller main.specinstead ofPyInstaller main.pyor you will lose your changes.