[sage-devel] Re: Wrong python in Sage shell?

2019-08-29 Thread John H Palmieri


On Thursday, August 29, 2019 at 7:15:51 AM UTC-7, Frédéric Chapoton wrote:
>
> Hello
>
> Somebody (else) should make sure that every single remaining piece of 
> python2 is removed from a python3 sage. In particular, we should not build 
> python2 at all.
>

See https://trac.sagemath.org/ticket/28426 


> Frédéric
>
> Le jeudi 29 août 2019 12:35:46 UTC+2, Simon King a écrit :
>>
>> Hi Dima, 
>>
>> On 2019-08-29, Dima Pasechnik  wrote: 
>> > is  this python2 from your OS, or from Sage's installation? 
>>
>> From Sage's installation (apparently Sage-with-py-3 also builds 
>> python-2): 
>>
>>   (sage-sh) king@klap:~$ which python 
>>   /home/king/Sage/git/py3/local/bin/python 
>>   (sage-sh) king@klap:~$ which python3 
>>   /home/king/Sage/git/py3/local/bin/python3 
>>
>> Best regards, 
>> Simon 
>>
>>

-- 
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/3161c5b6-f438-45d0-8417-04fdf2190dc0%40googlegroups.com.


Re: [sage-devel] Re: Wrong python in Sage shell?

2019-08-29 Thread Jeroen Demeyer
On Thu, Aug 29, 2019 at 6:02 PM Samuel Lelievre
 wrote:
> Possibly somewhat related (sorry if not): after building Sage
> for Python 3, running `sage -t` lets the doctesting framework
> decide what to set `optional` to, and apparently it uses
> "python2" rather than "python3"; is this the desired behaviour?

Yes, "python2" is installed as optional package and this is simply
running tests for that optional package. There aren't any such tests,
but the test framework doesn't a priori know that.

"python3" is not optional, therefore it's not listed in the --optional options.

I agree that it's confusing, but it's not a bug.

-- 
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/CALZ1QMov-jyy4K2eM32_VAkCQcn6%3DnW3YmD6gNnMJ4Fch0zsSQ%40mail.gmail.com.


[sage-devel] Re: Wrong python in Sage shell?

2019-08-29 Thread Samuel Lelievre
Possibly somewhat related (sorry if not): after building Sage
for Python 3, running `sage -t` lets the doctesting framework
decide what to set `optional` to, and apparently it uses
"python2" rather than "python3"; is this the desired behaviour?

$ ./sage --python --version
Python 3.7.3
$ ./sage -t --all -p 2
Running doctests with ID 2019-08-29-17-56-03-a7156513.
Git branch: develop
Using --optional=build,dochtml,python2,sage


-- 
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/bdff653a-95ca-49a3-8f9d-521d1091a633%40googlegroups.com.


[sage-devel] Re: inconsistency in computation of differential of a map between manifolds

2019-08-29 Thread Eric Gourgoulhon
Le mercredi 28 août 2019 21:29:29 UTC+2, Eric Gourgoulhon a écrit :
>
>
> You are perfectly right: "check" would be more appropriate than "verbose" 
> in this context. 
> I'll open a ticket for this and make "check=True" the default. 
>


This is now  https://trac.sagemath.org/ticket/28422.

Eric. 

-- 
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/cad95c40-fb3d-424a-b39e-05effe3c90c9%40googlegroups.com.


[sage-devel] Re: Wrong python in Sage shell?

2019-08-29 Thread Frédéric Chapoton
Hello

Somebody (else) should make sure that every single remaining piece of 
python2 is removed from a python3 sage. In particular, we should not build 
python2 at all.

Frédéric

Le jeudi 29 août 2019 12:35:46 UTC+2, Simon King a écrit :
>
> Hi Dima, 
>
> On 2019-08-29, Dima Pasechnik > wrote: 
> > is  this python2 from your OS, or from Sage's installation? 
>
> From Sage's installation (apparently Sage-with-py-3 also builds 
> python-2): 
>
>   (sage-sh) king@klap:~$ which python 
>   /home/king/Sage/git/py3/local/bin/python 
>   (sage-sh) king@klap:~$ which python3 
>   /home/king/Sage/git/py3/local/bin/python3 
>
> Best regards, 
> Simon 
>
>

-- 
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/a8e36b97-db8a-49b5-b1f4-3387d2d605e5%40googlegroups.com.


Re: [sage-devel] Re: error building barvinok (sage 8.9.beta8 + system NTL)

2019-08-29 Thread Victor Shoup
Thanks for all of the thoughtful replies.

I don't have time to rewrite the config script any time soon.
According to the libtool documentation, it is supposed to be usable
without relying on automake.
NTL's config script allows you to override the default libtool with a 
system libtool,
so that seems like the simplest way to deal with this for now.

If I rewrite any of NTL's config scripts, it will likely be to move it over 
to cmake.


On Thursday, August 29, 2019 at 3:43:33 AM UTC-4, Antonio Rojas wrote:
>
>
>
> El jueves, 29 de agosto de 2019, 0:06:49 (UTC+2), Dima Pasechnik escribió:
>>
>>
>> > Relying on patched bundled copies of dependencies is very much frowned 
>> upon by distros. It would be much preferable to make this work with 
>> unmodified libtool, which may be provided by the distribution. 
>>
>> Well, libtool is just a shell script, more or less. NTL isn't unique 
>> in shipping its own version. 
>> Does Arch use its own libtool when building NTL, or the bundled one? 
>>
>>
> Regardless of how simple if may be, bundling dependencies increases the 
> risk of introducing bugs and inconsistencies between distro packages. On 
> Arch we are building ntl using system's libtool.
> Anyway, whatever solution is adopted is not such a big deal since there is 
> an easy workaround (pass LDLIBS='-lpthread' to configure) that distros can 
> keep using - It would just be nicer to fix it without resorting to patched 
> dependencies IMO. 
>

-- 
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/43feca19-aecc-42f4-a8a3-0e15472ada37%40googlegroups.com.


[sage-devel] Re: Wrong python in Sage shell?

2019-08-29 Thread Simon King
Hi Dima,

On 2019-08-29, Dima Pasechnik  wrote:
> is  this python2 from your OS, or from Sage's installation?

>From Sage's installation (apparently Sage-with-py-3 also builds
python-2):

  (sage-sh) king@klap:~$ which python
  /home/king/Sage/git/py3/local/bin/python
  (sage-sh) king@klap:~$ which python3
  /home/king/Sage/git/py3/local/bin/python3

Best regards,
Simon

-- 
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/qk89pp%243oho%241%40blaine.gmane.org.


Re: [sage-devel] Wrong python in Sage shell?

2019-08-29 Thread Vincent Delecroix

It is sort of normal. [PEP0394] used to say that python
should be an alias for python2. But now it says that it
should either be python2 or python3.

Sage just follows the logic that was in place.

[PEP0394] https://www.python.org/dev/peps/pep-0394/

Vincent

Le 29/08/2019 à 12:00, Simon King a écrit :

Hi!

The following happens with a Py-3 build of Sage: I open a sage-shell,
and then I get
   (sage-sh) king@klap:src$ sage --python --version
   Python 3.7.3
   (sage-sh) king@klap:src$ python --version
   Python 2.7.15

Is it expected that the default python version in a py-3 install is a
py-2?

Best regards,
Simon



--
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/a68c3ea8-b10b-67d1-4456-3f6003af18d6%40gmail.com.


Re: [sage-devel] Wrong python in Sage shell?

2019-08-29 Thread Dima Pasechnik
is  this python2 from your OS, or from Sage's installation?

On Thu, 29 Aug 2019 13:00 Simon King,  wrote:

> Hi!
>
> The following happens with a Py-3 build of Sage: I open a sage-shell,
> and then I get
>   (sage-sh) king@klap:src$ sage --python --version
>   Python 3.7.3
>   (sage-sh) king@klap:src$ python --version
>   Python 2.7.15
>
> Is it expected that the default python version in a py-3 install is a
> py-2?
>
> Best regards,
> Simon
>
> --
> 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/qk87o9%2478oi%241%40blaine.gmane.org
> .
>

-- 
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/CAAWYfq02pEqWhyn_iubMsRbg%2BBAt1z8%2BDFQHmt77yVVJsHq9qg%40mail.gmail.com.


[sage-devel] Wrong python in Sage shell?

2019-08-29 Thread Simon King
Hi!

The following happens with a Py-3 build of Sage: I open a sage-shell,
and then I get
  (sage-sh) king@klap:src$ sage --python --version
  Python 3.7.3
  (sage-sh) king@klap:src$ python --version
  Python 2.7.15

Is it expected that the default python version in a py-3 install is a
py-2?

Best regards,
Simon

-- 
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/qk87o9%2478oi%241%40blaine.gmane.org.


Re: [sage-devel] Re: error building barvinok (sage 8.9.beta8 + system NTL)

2019-08-29 Thread Antonio Rojas


El jueves, 29 de agosto de 2019, 0:06:49 (UTC+2), Dima Pasechnik escribió:
>
>
> > Relying on patched bundled copies of dependencies is very much frowned 
> upon by distros. It would be much preferable to make this work with 
> unmodified libtool, which may be provided by the distribution. 
>
> Well, libtool is just a shell script, more or less. NTL isn't unique 
> in shipping its own version. 
> Does Arch use its own libtool when building NTL, or the bundled one? 
>
>
Regardless of how simple if may be, bundling dependencies increases the 
risk of introducing bugs and inconsistencies between distro packages. On 
Arch we are building ntl using system's libtool.
Anyway, whatever solution is adopted is not such a big deal since there is 
an easy workaround (pass LDLIBS='-lpthread' to configure) that distros can 
keep using - It would just be nicer to fix it without resorting to patched 
dependencies IMO. 

-- 
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/1384b9b7-b572-4a86-8448-d70db93f80d4%40googlegroups.com.