Hi again,

I think I may have misunderstood what pyinstaller does. It does not 
download Python modules from any repository given some package name, but it 
packages only the modules that are present *in the current environment*, is 
that right?

If that is the case then there is obviously no need to specify the exact 
version, then I can just do `poetry install && poetry run pyinstaller ...` 
and will get the modules in the same version as my poetry lockfile; that's 
good.

(Still I feel pyinstaller would have to do less work if it just blindly 
packaged what was in the poetry lockfile, rather than trying to 
auto-discover the needed modules and then maybe needing additional hints.)

Thanks
Tobias

On Saturday, September 25, 2021 at 5:29:23 p.m. UTC+9 Tobias Pfeiffer wrote:

> Hi,
>
> I am trying to package an existing Python application using PyInstaller, 
> but I'm unable to find out how to specify the required version of each 
> dependency.
>
> I am using poetry to manage dependencies, so I have a pyproject.toml with 
> the major dependencies of my project and a poetry.lock file that specifies 
> for all direct and indirect dependencies which version is necessary for my 
> project to work; this information cannot possibly be extracted from 
> inspecting the import statements in all the Python files.
>
> Ideally I would skip the auto-detection feature and use the poetry.lock 
> file to tell PyInstaller which dependencies to bundle, or as a fallback I 
> would like to tell PyInstaller which versions to use of certain hidden 
> import modules on the command line, is such a thing possible?
>
> Thanks
> Tobias
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/e5f7e6e7-8f0b-4d39-808f-739276f81f8en%40googlegroups.com.

Reply via email to