Simon King wrote:
> Hey!
> 
> On 2016-08-19, leif <not.rea...@online.de> wrote:
>> Jeroen Demeyer wrote:
>>> What is the recommended way to check if the latest version of a given
>>> Sage package is installed? The function is_package_installed() only
>>> checks whether *some* version of the package is installed, which might
>>> not be the latest version.
>>
>> Note that the "latest" version of any package is always exactly the one
>> hardcoded into the "unified repo" for any given Sage version.
> 
> Which means that is_package_installed() gives the desired answer,
> *unless* the user has somehow installed an old version manually, isn't
> it?

Yes and no ;-) -- with "has installed" meaning the passive present form
(rather "the user somehow has an old version installed", where
"manually" doesn't really make sense though).

The only way currently is to for example install an ("up-to-date"!)
optional or experimental package and afterwards upgrade Sage (without
installing the newer version of the optional/experimental package
although it is "available" for the new version of Sage).

Unless he/she has been ("manually"?) messing around with
package-version.txt and checksums.ini of course (but then "up-to-date"
would simply depend on the perspective).


[This refers to non-PIP packages; for PIP packages, the situation is
presumably different.]


-leif


-- 
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 post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to