Yes,  whoever writes the Phython code needs to place the requirements in a
file called "requirements.text" and make a setup.py file.

This is not the place to discuss software development best-practices.  It
is best to read the Python documentation and follow it to the letter.
What they suggest is to select a packaging technique that is appropriate to
the intended user.  If the user is an experienced Python developer, then
you might share a link to the Github repository and that would be enough.
  But most computer users want to simply click on the app and then it
runs.    For that level of "ease of use" you need to package the correct
Python interpreter with the app in one big file and make it executable.
 There are also some options between.  The official docs are here:
https://docs.python.org/3/library/distribution.html

The reason we don't run Python apps on the system's default Python
interpreter is this scenario:   The user is doing just fine and then one
day he sees a popup telling him there is an important security update for
his OS.  So he clicks "install" and in the process, Python is upgraded
along with some of the packages it uses.   After this, your Python app no
longer works.  It is unreasonable to tell your users they can not apply
security updates.   This is such a common scenario that there are pre-made
fixes for it, described in the above link, and also some 3rd party
solutions.

BTW, I suspect that within a year we will start to see many Python packages
that say "requires Python 3.10 or higher".  This is because 3.10 introduces
some new language features that people will want to use.



On Wed, Mar 2, 2022 at 1:47 AM gene heskett <[email protected]> wrote:

> On Wednesday, March 2, 2022 4:14:48 AM EST Karl Jacobs wrote:
> > To correct typos, that should rather read
> > "python3.7 -m venv <some_name>"
> > and
> > "source <some_name>/bin/activate"
> > to create and activate a python virtual environment, in this case with
> > the specific python version 3.7 that you want to use (which of course
> > must be installed and in your $PATH). If you just say python3, the venv
> > would still use the (default) 3.9 version.
> > Cheers,
> > Karl
> >
> Some how then, this might have to be incorporated into the build it on
> the rpi scripts. Next question is where might a python-3.7 be obtained
> for a rpi4 running bullseye? Can the buster version be used?
>
> Thanks Karl. Take care and stay well.
>
> > Am 01.03.2022 um 23:17 schrieb Chris Albertson:
> > > It is easy to install 3.7     First use "python3 -m vend <some_name>"
> > >  then "source <some <some_name>/bin/activate" then install the
> > > version of python you like and whatever version of the packages you
> > > want.  That's it. Now you have a vertical environment.
> > >
> > > In fact, almost every Python developer does this is it is generally a
> > > really bad idea to run with the default Python that comes with the
> > > OS.
> > >
> > > On Tue, Mar 1, 2022 at 5:46 AM gene heskett <[email protected]>
> wrote:
> > >> Greetings all;
> > >>
> > >> Any progress on that? The python is too new. Buster is just fine
> > >> with its python-3.7, but bullseye has python-3.9.2 and breaks it.
> > >>
> > >> Cheers, Gene Heskett.
> > >> --
> > >>
> > >> "There are four boxes to be used in defense of liberty:
> > >>   soap, ballot, jury, and ammo. Please use in that order."
> > >>
> > >> -Ed Howdershelt (Author, 1940)
> > >> If we desire respect for the law, we must first make the law
> > >> respectable.>>
> > >>   - Louis D. Brandeis
> > >>
> > >> Genes Web page <http://geneslinuxbox.net:6309/gene>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> Emc-users mailing list
> > >> [email protected]
> > >> https://lists.sourceforge.net/lists/listinfo/emc-users
> >
> > _______________________________________________
> > Emc-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> > .
>
>
> Cheers, Gene Heskett.
> --
> "There are four boxes to be used in defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author, 1940)
> If we desire respect for the law, we must first make the law respectable.
>  - Louis D. Brandeis
> Genes Web page <http://geneslinuxbox.net:6309/gene>
>
>
>
>
>
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>


-- 

Chris Albertson
Redondo Beach, California

_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to