Stephen Waterbury
2018-01-30 20:36:18 UTC
Hi conda developers,
First, let me convey a huge thanks (again) for conda-constructor! I have
used it to create an installer for my pyqt gui app, which is now
"self-updating" using conda. Using conda and conda-constructor is by *FAR*
the best way to package and deploy a large gui-based app that uses SciPy
libraries: for python-illiterate users (the majority, for my app), they
don't have to know that conda is the source of the magic; OTOH, my
python-literate users get a nice conda environment along with my app, for
free! ;)
I've given my application an "update" menu function that internally calls
'conda.cli.main' in a separate thread to run 'update' (or 'install' or
'list'), which is a HUGE benefit to my app because its constructor-built
installer is over 500MB (some huge dependencies), but my app's package is
relatively tiny (< 4MB, of which the bulk is images/icons) so it updates
relatively quickly and users don't have to uninstall and run a new
installer for every update (which would be horrible).
Currently I just have my progress bar in cyclic mode, which is okay but
could be a little prettier if I could callback to my progress bar with the
progress from conda install. Looking through the conda code, it appears
that I could do that if I could give ProgressiveFetchExtract a "proxy"
ProgressBar and/or utilize its 'update_to' callback to update my pyqt
progress bar.
I guess one way might be to give ProgressiveFetchExtract a
'progress_bar_class' kwarg so I could pass in a class to use. (Maybe too
hacky?) But of course it would somehow have to be accessible via
conda.cli.main or something ... probably not a high priority item but would
make conda really cool for self-updating gui applications!
Cheers,
Steve
First, let me convey a huge thanks (again) for conda-constructor! I have
used it to create an installer for my pyqt gui app, which is now
"self-updating" using conda. Using conda and conda-constructor is by *FAR*
the best way to package and deploy a large gui-based app that uses SciPy
libraries: for python-illiterate users (the majority, for my app), they
don't have to know that conda is the source of the magic; OTOH, my
python-literate users get a nice conda environment along with my app, for
free! ;)
I've given my application an "update" menu function that internally calls
'conda.cli.main' in a separate thread to run 'update' (or 'install' or
'list'), which is a HUGE benefit to my app because its constructor-built
installer is over 500MB (some huge dependencies), but my app's package is
relatively tiny (< 4MB, of which the bulk is images/icons) so it updates
relatively quickly and users don't have to uninstall and run a new
installer for every update (which would be horrible).
Currently I just have my progress bar in cyclic mode, which is okay but
could be a little prettier if I could callback to my progress bar with the
progress from conda install. Looking through the conda code, it appears
that I could do that if I could give ProgressiveFetchExtract a "proxy"
ProgressBar and/or utilize its 'update_to' callback to update my pyqt
progress bar.
I guess one way might be to give ProgressiveFetchExtract a
'progress_bar_class' kwarg so I could pass in a class to use. (Maybe too
hacky?) But of course it would somehow have to be accessible via
conda.cli.main or something ... probably not a high priority item but would
make conda really cool for self-updating gui applications!
Cheers,
Steve
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/0fe8d8c5-a9fc-42fe-b76f-1b68ded8c708%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/0fe8d8c5-a9fc-42fe-b76f-1b68ded8c708%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.