> -------Original Message-------
> From: Abd-elrhman Al-Tawdy <[email protected]>
> To: [email protected] <[email protected]>
> Subject: [freedom] python venv comments/questions
> Sent: 2024-04-27 17:31
>
> sys.prefix != sys.base_prefix
Please see https://docs.python.org/3/library/sys.html
>
> q2 - dose the concept of virtual environment apply to other language?
>
The word "virtual environment" is a term with OE (operating environment)
centric and has nothing to do with any one specific programming language.
However, the tooling script needs to be developed keeping the artifacts and
load mechanisms specific to that language.
Here is the discussion specific to C++
https://www.reddit.com/r/cpp_questions/comments/152k7jk/what_is_the_best_way_to_create_an_isolated_c/
and
https://www.reddit.com/r/cpp/comments/xigwua/does_anyone_use_virtual_environments_conans/
This is a feature that's going to be available in Demir as well :-)
PHP
now in the case of PHP, if you are using mod_php then you need a way to load
one mod_php7 for .php7 and mod_php8 for .php (version free is latest).
> example java, php
> q3 - that is not related to Java virtual machine "JVM" , correct?
Yes
> q4 - from system admin point of view (packages) i remember that it
> always make issues to have multiple php versions in same OS (lets say
> ubuntu with web server Apache ), and container/docker came to solve
> this point, but if the PHP have this ability "virtual environment",
> then what was the issue?, why the developers didn't use this feature ,
> or am i understanding this issue wrongly
PHP
https://archlinux.org/news/php-80-and-php-7-legacy-packages-are-available/
https://stackoverflow.com/questions/26277151/force-composer-to-require-php-version-between-version-x-and-version-y
https://moss.sh/docs/managing-sites/working-with-multiple-php-versions-on-your-server/
This means that when dealing with multiple version, unless and until a package
manager has a mechanism to deal with all the versions of a language |
environment, you will always end up with one version !
This is the problem that namespace | cgroup based isolation mechanism can solve
while taking full dependency into account.
warm regards
Saifi.