Closed jkfindeisen closed 2 years ago
Oh sorry. I just realized this is by design because all dependencies have to be given. This could result in a lot of trial and error for packages with many dependencies (like for pandas for example). I guess I better use pip on a clean environment first and simply use all packages from that for pynsist.
Yup, that's how it's meant to work. You can also use pip-tools to expand a list of dependencies into a full list of packages (like pip freeze
, but without having to actually create the environment). I also experimented with identifying packages needed by running an application - see kartoffel, but it is very much a rough prototype.
One of the lessons from recent versions of pip is that proper dependency resolution is complicated and confusing, so I'm not in a hurry to try that in Pynsist.
I use pynsist 2.8 installed from PyPi
I have an installer.cfg with
When I start the application after installation with the installer created by pynsist I get the following in the logging output
PyQt5 does not seem to get bundled correctly. (i.e. pip install pyqt5 installs sip as dependency automatically)
However adding
PyQt5-sip=12.9.0
to pypi_wheels solves the problem. So this is only for reference just in case somebody else has the same problem.