Re: Python 2 to 3 conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> On 30 Nov 2024, at 09:22, Tim via users <users@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> 
> On Sat, 2024-11-30 at 10:59 +1100, Stephen Morris wrote:
>> With reference to the Fedora environment, if a package is required to
>> be installed, would you recommend installing the repository version
>> or download it with pip?
> 
> The recommendation always was use your distro's packaging system if you
> wanted a stable system.  

Yes

> Of course you're screwed if what you want
> isn't available for it.  That leaves you with trying to create it, or
> influencing someone else into doing it.

The python way to isolate from the OS is to use the venv machinary.
I'm guessing from your response you are not familiar with it.

What venv gives you is a way to install all the dependencies for
your python project into its own set of directories.

You then run your script by using the venv's python program.

Tl;dr - use venv if the OS does not provide the PyPI package you
want to use.


> 
> Or you take your chances and install it from outside of the distro's
> ecosystem, and you get to play with all the pieces when it breaks.

Use venv avoid this problem completely.

> 
> You may be able to sandbox things to some extent, but that's going to
> depend on how much of your system's doo-dahs make use of Python. 
> That's probably less of an problem if your PC is just a box you type
> code on than something more general use.  Any PC with just five
> application on it is obviously going to have less interactions and
> clashes than one with a hundred.

Not a problem if you use venv.

> 
> For these kinds of reasons (limiting breakage, and recovery from it)
> that some people use virtual machines.  They can set up a playpen
> that's not the main OS.  A playpen that they can dump if it goes
> haywire and they still have a running system.

Not required if you use venv.

Barry



> 
> -- 
> 
> uname -rsvp
> Linux 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
> 
> Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
> I will only get to see the messages that are posted to the mailing list.
> 
> 
> -- 
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
> Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux