[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: 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.


[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.