No, that’s not true. PyInstaller looks at your binary dependencies (Python extension modules, libpython.so, anything you’ve added via --add-binary), runs ldd on each file to see what other libraries they depend on and then packages those. If PyInstaller is collecting libreadline.so.6 then one of the files in your application depends on libreadline.so.6 (or possibly it depends on libreadline.so and libreadline.so is a symlink to libreadline.so.6).