Debian (or even Python3 itself) doesn't allow to pip install required >packages system wide,
But is it right, that I have to do that for every single user?
Hi,
I learned to use virtual environments where ever possible, and I learned to pip install the required packages there.
That works quite nice at home. Now I come to deploy a Python script on a debian linux server, making it usable for a couple of users there.
Debian (or even Python3 itself) doesn't allow to pip install required packages system wide, so I have to use virtual environments even there. But is it right, that I have to do that for every single user?
Can someone give me a hint to find an howto for that?
Debian (or even Python3 itself) doesn't allow to pip install required pa=ckages system wide, so I have to use virtual environments even there. But =
Can someone give me a hint to find an howto for that?
Am Sat, Oct 05, 2024 at 10:27:33PM +0200 schrieb Ulrich Goebel via Pytho=n-list:
packages system wide, so I have to use virtual environments even there. Bu=Debian (or even Python3 itself) doesn't allow to pip install required =
Can someone give me a hint to find an howto for that?
If you do find how to cleanly install non-packaged modules
in a system-wide way (even if that means installing every
application into its own *system-wide* venv) - do let me
know.
Am Sun, Oct 06, 2024 at 12:21:09AM +0200 schrieb Karsten Hilbert via Python-list:
Am Sat, Oct 05, 2024 at 10:27:33PM +0200 schrieb Ulrich Goebel viaPython-list:
packages system wide, so I have to use virtual environments even there. But is it right, that I have to do that for every single user?Debian (or even Python3 itself) doesn't allow to pip install required
Can someone give me a hint to find an howto for that?
If you do find how to cleanly install non-packaged modules
in a system-wide way (even if that means installing every
application into its own *system-wide* venv) - do let me
know.
It seems dh-virtualenv is one way to do it. On Debian.
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
--
https://mail.python.org/mailman/listinfo/python-list
This is how we handle this problem at a large organization.
In the repository there are a number of build scripts. For convenience we
use poetry (poetry.toml) to manage the virtual environment. A
pyproduct.toml is used to define dependencies, how tests are run, the
linter config, etc.
So there are scripts for poetry lock, poetry install, and whatever else is needed.
A user pulls down the repository and runs
1. poetry lock
2. poetry install
And they have their environment with the proper dependencies.
On Sun, Oct 6, 2024, 09:47 Karsten Hilbert via Python-list < python-list@python.org> wrote:
Am Sun, Oct 06, 2024 at 12:21:09AM +0200 schrieb Karsten Hilbert via
Python-list:
Am Sat, Oct 05, 2024 at 10:27:33PM +0200 schrieb Ulrich Goebel viaPython-list:
packages system wide, so I have to use virtual environments even there. But >> is it right, that I have to do that for every single user?
Debian (or even Python3 itself) doesn't allow to pip install required
Can someone give me a hint to find an howto for that?
If you do find how to cleanly install non-packaged modules
in a system-wide way (even if that means installing every
application into its own *system-wide* venv) - do let me
know.
It seems dh-virtualenv is one way to do it. On Debian.
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
--
https://mail.python.org/mailman/listinfo/python-list
Debian (or even Python3 itself) doesn't allow to pip install required packages system wide, so I have to use virtual environments even there. But is it right, that I have to do that for every single user?
Sysop: | Tetrazocine |
---|---|
Location: | Melbourne, VIC, Australia |
Users: | 4 |
Nodes: | 8 (0 / 8) |
Uptime: | 59:38:54 |
Calls: | 65 |
Files: | 21,500 |
Messages: | 73,572 |