On Monday, September 27, 2021 at 1:24:47 PM UTC-7 wst...@gmail.com wrote:

> On Monday, September 27, 2021 at 1:06:58 PM UTC-7 Matthias Koeppe wrote:
>
>> On Monday, September 27, 2021 at 12:46:30 PM UTC-7 Nils Bruin wrote:
>>
>>>
>>> Presently,
>>>
>>> $ sage -pip install --user .....
>>>
>>> fails (at least for me, with a vanilla sage install on FC33) with
>>>
>>> ERROR: Can not perform a '--user' install. User site-packages are not 
>>> visible in this virtualenv.
>>>
>>> Perhaps it's worth having this?
>>>
>> This is deliberately disabled (look for PYTHONUSERBASE in 
>> src/bin/sage-env) because users tend to have random trash installed in the 
>> user scheme. Because these packages would take precedence over 
>> Sage-provided packages, this would lead to endless bug reports on the 
>> mailing lists.
>>
>
> However, as I mentioned in my other email, we explicitly enable it back in 
> CoCalc by patching the 
> Sage install. [...]
> I think the best solution for the official Sage distribution is to provide 
> an *option* for systems admins installing
> Sage to all or not allow user pip installs.  Probably the default should 
> be "no", but there should be a documented
> supported way of changing the behavior to "yes". 
>

Much better than any of these options is to use user-defined venvs. 
This has been available since Sage 9.2:
https://wiki.sagemath.org/ReleaseTours/sage-9.2#Reusable_wheels_for_the_Python_packages_built_by_the_Sage_distribution


-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/3743857f-6b17-48e6-8496-6527882b7f3fn%40googlegroups.com.

Reply via email to