Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-11 Thread Matthias Koeppe
I have updated the instructions.


On Thursday, November 11, 2021 at 4:27:38 PM UTC-8 Matthias Koeppe wrote:

> Invoking "setup.py install" is always wrong, it should not be used 
> directly anymore.
>
> Try "pip install ." instead
>
> On Thursday, November 11, 2021 at 4:24:47 PM UTC-8 Dima Pasechnik wrote:
>
>> anyhow, Conda for Sage Developers needs updates.
>> Before doing
>>
>> cd src/
>> python setup.py install
>>
>> one needs to do the same for a number of packages in
>> pkgs/
>>
>> cd pkgs/sage-conf
>> python setup.py install
>> cd ../sage-setup
>> python setup.py install
>>
>> and I also did
>>
>> pip install memory-allocator
>>
>> because some of these was failing with an error there
>>
>>
>> Perhaps Matthias can tell us more about the precise order and need.
>>
>>
>> On Thu, Nov 11, 2021 at 11:56 PM Isuru Fernando  wrote:
>> >
>> > I suggest running `conda activate sage-build` and then doing a `make 
>> dist-clean`.
>> >
>> > --
>> > 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+...@googlegroups.com.
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-devel/CA%2B01voMXPYnm3FmYZYq-4fRWkB7ttBpABBbJ%3D6p_Yaw9mNAZKw%40mail.gmail.com
>> .
>>
>

-- 
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/14a909a8-c219-4325-9583-ca687d0ec78cn%40googlegroups.com.


[sage-devel] Re: RFC: zn_poly removal

2021-11-11 Thread Michael Orlitzky
On 2021-11-11 11:18:03, Alex J Best wrote:
> Right, that seems like a fair benchmark to me, does zn_poly (falling back 
> to ntl) run faster than the force ntl = 1 version in enough ranges of 
> variables to justify its continued existence?
> Knowing whether it failed and fell back (and hence was slower) or just is 
> simply slower doesn't seem to matter compared to the end result, knowing 
> where its slower.
>

For what it's worth, I did overlook a few indirect uses of
interval_products_wrapper(). It's called by hypellfrob::matrix(),
which I didn't realize was visible in hypellfrob.h. I've set the
ticket to needs_work temporarily for want of benchmarks.


> Yes exactly, I forgot now why we decided to use force ntl=1 for cyclic 
> covers, and indeed I forgot that we did force it completely, I really have 
> no idea the reasons that went into that decision anymore unfortunately.
> 

https://i.redd.it/chyhl5fj4zg41.jpg

-- 
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/YY26nBga7KiulIKp%40stitch.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-11 Thread Matthias Koeppe
Invoking "setup.py install" is always wrong, it should not be used directly 
anymore.

Try "pip install ." instead

On Thursday, November 11, 2021 at 4:24:47 PM UTC-8 Dima Pasechnik wrote:

> anyhow, Conda for Sage Developers needs updates.
> Before doing
>
> cd src/
> python setup.py install
>
> one needs to do the same for a number of packages in
> pkgs/
>
> cd pkgs/sage-conf
> python setup.py install
> cd ../sage-setup
> python setup.py install
>
> and I also did
>
> pip install memory-allocator
>
> because some of these was failing with an error there
>
>
> Perhaps Matthias can tell us more about the precise order and need.
>
>
> On Thu, Nov 11, 2021 at 11:56 PM Isuru Fernando  wrote:
> >
> > I suggest running `conda activate sage-build` and then doing a `make 
> dist-clean`.
> >
> > --
> > 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+...@googlegroups.com.
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/CA%2B01voMXPYnm3FmYZYq-4fRWkB7ttBpABBbJ%3D6p_Yaw9mNAZKw%40mail.gmail.com
> .
>

-- 
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/b03f63d2-9b17-4c7d-abdb-e1ce8a2e6ff3n%40googlegroups.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-11 Thread Dima Pasechnik
anyhow, Conda for Sage Developers needs updates.
Before doing

cd src/
python setup.py install

one needs to do the same for a number of packages in
pkgs/

cd pkgs/sage-conf
python setup.py install
cd ../sage-setup
python setup.py install

and I also did

pip install memory-allocator

because some of these was failing with an error there


Perhaps Matthias can tell us more about the precise order and need.


On Thu, Nov 11, 2021 at 11:56 PM Isuru Fernando  wrote:
>
> I suggest running `conda activate sage-build` and then doing a `make 
> dist-clean`.
>
> --
> 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/CA%2B01voMXPYnm3FmYZYq-4fRWkB7ttBpABBbJ%3D6p_Yaw9mNAZKw%40mail.gmail.com.

-- 
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/CAAWYfq23oTreBZmc4Sfp5T3vruwAASk-q28SZVDnioLHR37fcg%40mail.gmail.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-11 Thread Isuru Fernando
I suggest running `conda activate sage-build` and then doing a `make
dist-clean`.

-- 
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/CA%2B01voMXPYnm3FmYZYq-4fRWkB7ttBpABBbJ%3D6p_Yaw9mNAZKw%40mail.gmail.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-11 Thread Dima Pasechnik
On Thu, Nov 11, 2021 at 11:49 PM Isuru Fernando  wrote:
>
> It's not good to have two conda environments. I'm not sure how you got them 
> both involved in the build.
hmm. First I just installed Sage 9.4 as a conda package, (getting sage
env), and then
tried your sage-build env. instructions.


>
> `mamba install pari -n sage-build` will install sage in `sage-build` env.
>
> Isuru
>
> On Thu, Nov 11, 2021 at 5:15 PM Dima Pasechnik  wrote:
>>
>> Conda's pari packages are a bit broken (they are per env, but not
>> quite), and this test fails:
>>
>> configure:21400: result: libpari's datadir does not match GP's datadir. Not 
>> good
>> configure:21449: no suitable system package found for SPKG pari
>>
>> namely, GP's datadir is
>> /Users/dima/opt/miniconda3/envs/sage-build/share/pari
>> but libpari's datadir is
>> /Users/dima/opt/miniconda3/envs/sage/share/pari
>>
>> and if I try "mamba install pari" I just get
>>
>> All requested packages already installed.
>>
>> I suppose I don't understand conda's environments well - how does one tell
>> conda to install pari (and libpari) into sage-build?
>>
>>
>>
>> On Thu, Nov 11, 2021 at 9:56 PM Isuru Fernando  wrote:
>> >
>> > > Can one install Sage on macOS 12 using (mini)Conda at all ?
>> >
>> > Sure. It should work fine. Bug reports are welcome.
>> >
>> > Isuru
>> >
>> > On Thu, Nov 11, 2021 at 3:38 PM Dima Pasechnik  wrote:
>> >>
>> >> Hi Harald,
>> >>
>> >> We don't have Sage ported to macos 12 yet, I am afraid.
>> >> We have been fighting macos 11 until April, see
>> >> https://trac.sagemath.org/ticket/30651
>> >>
>> >> I've just opened https://trac.sagemath.org/ticket/32855
>> >>
>> >> Binaries built on macOS 10 or 11 might run on 12, but building is another 
>> >> story.
>> >>
>> >> Can one install Sage on macOS 12 using (mini)Conda at all ?
>> >>
>> >> I think building might be easier with Homebrew rather than Conda, too.
>> >>
>> >> Cheers,
>> >> Dima
>> >>
>> >>
>> >> On Thursday, November 11, 2021 at 7:00:06 PM UTC harald@gmail.com 
>> >> wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> I'm trying to build Sagemath from source (within miniconda) on an 
>> >>> Intel-based Mac Mini running MacOS Monterrey. I get:
>> >>>
>> >>> [pip-21.1.2] Error building a wheel for pip-21.1.2
>> >>> ...
>> >>>
>> >>> [pip-21.1.2] Error installing package pip-21.1.2
>> >>>
>> >>> See the log files.
>> >>>
>> >>> Best
>> >>>
>> >>> Harald
>> >>
>> >> --
>> >> 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/c95cfc0d-c1ea-41b9-8038-c360479af7efn%40googlegroups.com.
>> >
>> > --
>> > 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/CA%2B01voOYmV5hZAnoRjN-zw6v8A6qvLHHYhZ75firWG%2BGg6a6Lg%40mail.gmail.com.
>>
>> --
>> 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/CAAWYfq1XCMmjs2FGj7%2B6AZXoAg4rXb9CYzndodfjWXtO7%2B_w%2Bg%40mail.gmail.com.
>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "sage-devel" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/sage-devel/xYQXZKVMYfM/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CA%2B01voP8%2BR%2BjtbWJieM4Nsn7Af3QmhUMTYvySN%3DK%2B-3VX314Dg%40mail.gmail.com.

-- 
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/CAAWYfq30ZxcuE%2B6HmPdjLFRhLXOJ%3D%2BYcYzgHWvY7LO_Pm-8Uag%40mail.gmail.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-11 Thread Isuru Fernando
It's not good to have two conda environments. I'm not sure how you got them
both involved in the build.

`mamba install pari -n sage-build` will install sage in `sage-build` env.

Isuru

On Thu, Nov 11, 2021 at 5:15 PM Dima Pasechnik  wrote:

> Conda's pari packages are a bit broken (they are per env, but not
> quite), and this test fails:
>
> configure:21400: result: libpari's datadir does not match GP's datadir.
> Not good
> configure:21449: no suitable system package found for SPKG pari
>
> namely, GP's datadir is
> /Users/dima/opt/miniconda3/envs/sage-build/share/pari
> but libpari's datadir is
> /Users/dima/opt/miniconda3/envs/sage/share/pari
>
> and if I try "mamba install pari" I just get
>
> All requested packages already installed.
>
> I suppose I don't understand conda's environments well - how does one tell
> conda to install pari (and libpari) into sage-build?
>
>
>
> On Thu, Nov 11, 2021 at 9:56 PM Isuru Fernando  wrote:
> >
> > > Can one install Sage on macOS 12 using (mini)Conda at all ?
> >
> > Sure. It should work fine. Bug reports are welcome.
> >
> > Isuru
> >
> > On Thu, Nov 11, 2021 at 3:38 PM Dima Pasechnik 
> wrote:
> >>
> >> Hi Harald,
> >>
> >> We don't have Sage ported to macos 12 yet, I am afraid.
> >> We have been fighting macos 11 until April, see
> >> https://trac.sagemath.org/ticket/30651
> >>
> >> I've just opened https://trac.sagemath.org/ticket/32855
> >>
> >> Binaries built on macOS 10 or 11 might run on 12, but building is
> another story.
> >>
> >> Can one install Sage on macOS 12 using (mini)Conda at all ?
> >>
> >> I think building might be easier with Homebrew rather than Conda, too.
> >>
> >> Cheers,
> >> Dima
> >>
> >>
> >> On Thursday, November 11, 2021 at 7:00:06 PM UTC harald@gmail.com
> wrote:
> >>>
> >>> Hi,
> >>>
> >>> I'm trying to build Sagemath from source (within miniconda) on an
> Intel-based Mac Mini running MacOS Monterrey. I get:
> >>>
> >>> [pip-21.1.2] Error building a wheel for pip-21.1.2
> >>> ...
> >>>
> >>> [pip-21.1.2] Error installing package pip-21.1.2
> >>>
> >>> See the log files.
> >>>
> >>> Best
> >>>
> >>> Harald
> >>
> >> --
> >> 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/c95cfc0d-c1ea-41b9-8038-c360479af7efn%40googlegroups.com
> .
> >
> > --
> > 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/CA%2B01voOYmV5hZAnoRjN-zw6v8A6qvLHHYhZ75firWG%2BGg6a6Lg%40mail.gmail.com
> .
>
> --
> 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/CAAWYfq1XCMmjs2FGj7%2B6AZXoAg4rXb9CYzndodfjWXtO7%2B_w%2Bg%40mail.gmail.com
> .
>

-- 
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/CA%2B01voP8%2BR%2BjtbWJieM4Nsn7Af3QmhUMTYvySN%3DK%2B-3VX314Dg%40mail.gmail.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-11 Thread Dima Pasechnik
Conda's pari packages are a bit broken (they are per env, but not
quite), and this test fails:

configure:21400: result: libpari's datadir does not match GP's datadir. Not good
configure:21449: no suitable system package found for SPKG pari

namely, GP's datadir is
/Users/dima/opt/miniconda3/envs/sage-build/share/pari
but libpari's datadir is
/Users/dima/opt/miniconda3/envs/sage/share/pari

and if I try "mamba install pari" I just get

All requested packages already installed.

I suppose I don't understand conda's environments well - how does one tell
conda to install pari (and libpari) into sage-build?



On Thu, Nov 11, 2021 at 9:56 PM Isuru Fernando  wrote:
>
> > Can one install Sage on macOS 12 using (mini)Conda at all ?
>
> Sure. It should work fine. Bug reports are welcome.
>
> Isuru
>
> On Thu, Nov 11, 2021 at 3:38 PM Dima Pasechnik  wrote:
>>
>> Hi Harald,
>>
>> We don't have Sage ported to macos 12 yet, I am afraid.
>> We have been fighting macos 11 until April, see
>> https://trac.sagemath.org/ticket/30651
>>
>> I've just opened https://trac.sagemath.org/ticket/32855
>>
>> Binaries built on macOS 10 or 11 might run on 12, but building is another 
>> story.
>>
>> Can one install Sage on macOS 12 using (mini)Conda at all ?
>>
>> I think building might be easier with Homebrew rather than Conda, too.
>>
>> Cheers,
>> Dima
>>
>>
>> On Thursday, November 11, 2021 at 7:00:06 PM UTC harald@gmail.com wrote:
>>>
>>> Hi,
>>>
>>> I'm trying to build Sagemath from source (within miniconda) on an 
>>> Intel-based Mac Mini running MacOS Monterrey. I get:
>>>
>>> [pip-21.1.2] Error building a wheel for pip-21.1.2
>>> ...
>>>
>>> [pip-21.1.2] Error installing package pip-21.1.2
>>>
>>> See the log files.
>>>
>>> Best
>>>
>>> Harald
>>
>> --
>> 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/c95cfc0d-c1ea-41b9-8038-c360479af7efn%40googlegroups.com.
>
> --
> 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/CA%2B01voOYmV5hZAnoRjN-zw6v8A6qvLHHYhZ75firWG%2BGg6a6Lg%40mail.gmail.com.

-- 
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/CAAWYfq1XCMmjs2FGj7%2B6AZXoAg4rXb9CYzndodfjWXtO7%2B_w%2Bg%40mail.gmail.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-11 Thread Dima Pasechnik
On Thu, Nov 11, 2021 at 10:10 PM Isuru Fernando  wrote:

> > Am I right that it's possible to change Sage's Cython files in such an
> installation, and  update Sage this way?
>
> No, it's binary only. See https://wiki.sagemath.org/Conda section "Conda
> for sage developers" if you want to do that.
> (Btw, that hasn't been updated in a while and might not work due to a
> recent restructure of sage build system)
>

I'm checking it now on macOS 11, did few changes already.


>
> Isuru
>
> On Thu, Nov 11, 2021 at 4:04 PM Dima Pasechnik  wrote:
>
>>
>>
>> On Thu, Nov 11, 2021 at 9:56 PM Isuru Fernando  wrote:
>>
>>> > Can one install Sage on macOS 12 using (mini)Conda at all ?
>>>
>>> Sure. It should work fine. Bug reports are welcome.
>>>
>>> Am I right that it's possible to change Sage's Cython files in such an
>> installation, and  update Sage this way?
>>
>> Isuru
>>>
>>> On Thu, Nov 11, 2021 at 3:38 PM Dima Pasechnik 
>>> wrote:
>>>
 Hi Harald,

 We don't have Sage ported to macos 12 yet, I am afraid.
 We have been fighting macos 11 until April, see
 https://trac.sagemath.org/ticket/30651

 I've just opened https://trac.sagemath.org/ticket/32855

 Binaries built on macOS 10 or 11 might run on 12, but building is
 another story.

 Can one install Sage on macOS 12 using (mini)Conda at all ?

 I think building might be easier with Homebrew rather than Conda, too.

 Cheers,
 Dima


 On Thursday, November 11, 2021 at 7:00:06 PM UTC harald@gmail.com
 wrote:

> Hi,
>
> I'm trying to build Sagemath from source (within miniconda) on an
> Intel-based Mac Mini running MacOS Monterrey. I get:
>
> [pip-21.1.2] Error building a wheel for pip-21.1.2
> ...
>
> [pip-21.1.2] Error installing package pip-21.1.2
>
> See the log files.
>
> Best
>
> Harald
>
 --
 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/c95cfc0d-c1ea-41b9-8038-c360479af7efn%40googlegroups.com
 
 .

>>> --
>>> 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/CA%2B01voOYmV5hZAnoRjN-zw6v8A6qvLHHYhZ75firWG%2BGg6a6Lg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> 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/CAAWYfq2%3DwZiAyvdq4RNR10CnririEx_1E7jKjpJ9c0LxH2iKOA%40mail.gmail.com
>> 
>> .
>>
> --
> 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/CA%2B01voOKdCFNvKUgn%3D9BWSDcVuEMA9uLyAbDUQUhSDP86UaOjA%40mail.gmail.com
> 
> .
>

-- 
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/CAAWYfq3cL74P7NiZHSEjTLWNzN24ycU8QWWxE4r%3DHcBC8Z_HZg%40mail.gmail.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-11 Thread Isuru Fernando
> Am I right that it's possible to change Sage's Cython files in such an
installation, and  update Sage this way?

No, it's binary only. See https://wiki.sagemath.org/Conda section "Conda
for sage developers" if you want to do that.
(Btw, that hasn't been updated in a while and might not work due to a
recent restructure of sage build system)

Isuru

On Thu, Nov 11, 2021 at 4:04 PM Dima Pasechnik  wrote:

>
>
> On Thu, Nov 11, 2021 at 9:56 PM Isuru Fernando  wrote:
>
>> > Can one install Sage on macOS 12 using (mini)Conda at all ?
>>
>> Sure. It should work fine. Bug reports are welcome.
>>
>> Am I right that it's possible to change Sage's Cython files in such an
> installation, and  update Sage this way?
>
> Isuru
>>
>> On Thu, Nov 11, 2021 at 3:38 PM Dima Pasechnik  wrote:
>>
>>> Hi Harald,
>>>
>>> We don't have Sage ported to macos 12 yet, I am afraid.
>>> We have been fighting macos 11 until April, see
>>> https://trac.sagemath.org/ticket/30651
>>>
>>> I've just opened https://trac.sagemath.org/ticket/32855
>>>
>>> Binaries built on macOS 10 or 11 might run on 12, but building is
>>> another story.
>>>
>>> Can one install Sage on macOS 12 using (mini)Conda at all ?
>>>
>>> I think building might be easier with Homebrew rather than Conda, too.
>>>
>>> Cheers,
>>> Dima
>>>
>>>
>>> On Thursday, November 11, 2021 at 7:00:06 PM UTC harald@gmail.com
>>> wrote:
>>>
 Hi,

 I'm trying to build Sagemath from source (within miniconda) on an
 Intel-based Mac Mini running MacOS Monterrey. I get:

 [pip-21.1.2] Error building a wheel for pip-21.1.2
 ...

 [pip-21.1.2] Error installing package pip-21.1.2

 See the log files.

 Best

 Harald

>>> --
>>> 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/c95cfc0d-c1ea-41b9-8038-c360479af7efn%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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/CA%2B01voOYmV5hZAnoRjN-zw6v8A6qvLHHYhZ75firWG%2BGg6a6Lg%40mail.gmail.com
>> 
>> .
>>
> --
> 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/CAAWYfq2%3DwZiAyvdq4RNR10CnririEx_1E7jKjpJ9c0LxH2iKOA%40mail.gmail.com
> 
> .
>

-- 
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/CA%2B01voOKdCFNvKUgn%3D9BWSDcVuEMA9uLyAbDUQUhSDP86UaOjA%40mail.gmail.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-11 Thread Dima Pasechnik
On Thu, Nov 11, 2021 at 9:56 PM Isuru Fernando  wrote:

> > Can one install Sage on macOS 12 using (mini)Conda at all ?
>
> Sure. It should work fine. Bug reports are welcome.
>
> Am I right that it's possible to change Sage's Cython files in such an
installation, and  update Sage this way?

Isuru
>
> On Thu, Nov 11, 2021 at 3:38 PM Dima Pasechnik  wrote:
>
>> Hi Harald,
>>
>> We don't have Sage ported to macos 12 yet, I am afraid.
>> We have been fighting macos 11 until April, see
>> https://trac.sagemath.org/ticket/30651
>>
>> I've just opened https://trac.sagemath.org/ticket/32855
>>
>> Binaries built on macOS 10 or 11 might run on 12, but building is another
>> story.
>>
>> Can one install Sage on macOS 12 using (mini)Conda at all ?
>>
>> I think building might be easier with Homebrew rather than Conda, too.
>>
>> Cheers,
>> Dima
>>
>>
>> On Thursday, November 11, 2021 at 7:00:06 PM UTC harald@gmail.com
>> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to build Sagemath from source (within miniconda) on an
>>> Intel-based Mac Mini running MacOS Monterrey. I get:
>>>
>>> [pip-21.1.2] Error building a wheel for pip-21.1.2
>>> ...
>>>
>>> [pip-21.1.2] Error installing package pip-21.1.2
>>>
>>> See the log files.
>>>
>>> Best
>>>
>>> Harald
>>>
>> --
>> 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/c95cfc0d-c1ea-41b9-8038-c360479af7efn%40googlegroups.com
>> 
>> .
>>
> --
> 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/CA%2B01voOYmV5hZAnoRjN-zw6v8A6qvLHHYhZ75firWG%2BGg6a6Lg%40mail.gmail.com
> 
> .
>

-- 
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/CAAWYfq2%3DwZiAyvdq4RNR10CnririEx_1E7jKjpJ9c0LxH2iKOA%40mail.gmail.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-11 Thread Isuru Fernando
For this issue, you need setuptools 58 or higher.
Or remove the line
https://github.com/sagemath/sage/blob/f5efe4883f348e01ca3069ed82bf517a4de337f6/build/bin/sage-build-env#L174

Isuru

-- 
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/CA%2B01voMf-dQCsQjhm-P47WDT5JZjs6HABig_BsMjMfo8TDjbFw%40mail.gmail.com.


Re: [sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-11 Thread Isuru Fernando
> Can one install Sage on macOS 12 using (mini)Conda at all ?

Sure. It should work fine. Bug reports are welcome.

Isuru

On Thu, Nov 11, 2021 at 3:38 PM Dima Pasechnik  wrote:

> Hi Harald,
>
> We don't have Sage ported to macos 12 yet, I am afraid.
> We have been fighting macos 11 until April, see
> https://trac.sagemath.org/ticket/30651
>
> I've just opened https://trac.sagemath.org/ticket/32855
>
> Binaries built on macOS 10 or 11 might run on 12, but building is another
> story.
>
> Can one install Sage on macOS 12 using (mini)Conda at all ?
>
> I think building might be easier with Homebrew rather than Conda, too.
>
> Cheers,
> Dima
>
>
> On Thursday, November 11, 2021 at 7:00:06 PM UTC harald@gmail.com
> wrote:
>
>> Hi,
>>
>> I'm trying to build Sagemath from source (within miniconda) on an
>> Intel-based Mac Mini running MacOS Monterrey. I get:
>>
>> [pip-21.1.2] Error building a wheel for pip-21.1.2
>> ...
>>
>> [pip-21.1.2] Error installing package pip-21.1.2
>>
>> See the log files.
>>
>> Best
>>
>> Harald
>>
> --
> 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/c95cfc0d-c1ea-41b9-8038-c360479af7efn%40googlegroups.com
> 
> .
>

-- 
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/CA%2B01voOYmV5hZAnoRjN-zw6v8A6qvLHHYhZ75firWG%2BGg6a6Lg%40mail.gmail.com.


Re: [sage-devel] Re: RFC: zn_poly removal

2021-11-11 Thread Dima Pasechnik
I think we'd be fine dropping zn_poly even if it is 2 or 3 times faster.

On Thu, Nov 11, 2021 at 7:18 PM Alex J Best  wrote:
>
> Right, that seems like a fair benchmark to me, does zn_poly (falling back to 
> ntl) run faster than the force ntl = 1 version in enough ranges of variables 
> to justify its continued existence?
> Knowing whether it failed and fell back (and hence was slower) or just is 
> simply slower doesn't seem to matter compared to the end result, knowing 
> where its slower.
>
> Yes exactly, I forgot now why we decided to use force ntl=1 for cyclic 
> covers, and indeed I forgot that we did force it completely, I really have no 
> idea the reasons that went into that decision anymore unfortunately.
>
> On Tuesday, November 9, 2021 at 10:09:38 PM UTC+1 Michael Orlitzky wrote:
>>
>> On Tue, 2021-11-09 at 10:54 -0800, Alex J Best wrote:
>> > I agree the situation with zn_poly is a mess, but I think it would be good
>> > to do some actual benchmarks to check if the NTL code is faster or
>> > comparable to the zn_poly version, I don't see any data in the ticket but
>> > you do say "The one thing it does is done better by NTL" so maybe you
>> > already did some?
>>
>> It would be hard to benchmark without knowing where zn_poly fails. The
>> only function in sagelib that uses zn_poly is in hypellfrob.cpp, and it
>> has a comment at the top:
>>
>> Note that the zn_poly version occasionally fails; this happens more
>> frequently for smaller p, but is extremely rare for larger p. This
>> wrapper detects this and falls back on the zz_p/ZZ_p versions, which
>> should never fail.
>>
>> That's what I meant by "NTL does it better," and any benchmark would
>> have to take into consideration the attempts that failed and were
>> actually made with NTL instead. Certainly those cases are slower than
>> if we'd just used NTL the first time.
>>
>>
> --
> 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/7062f8ee-226c-41d6-ab95-ad0b0094d908n%40googlegroups.com.

-- 
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/CAAWYfq2vicJX-4ZruMKE4kHrg74Ep5%3DOMM5cwp%2BYW83GDKTONA%40mail.gmail.com.


[sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-11 Thread Dima Pasechnik
Hi Harald,

We don't have Sage ported to macos 12 yet, I am afraid.
We have been fighting macos 11 until April, see
https://trac.sagemath.org/ticket/30651

I've just opened https://trac.sagemath.org/ticket/32855

Binaries built on macOS 10 or 11 might run on 12, but building is another 
story.

Can one install Sage on macOS 12 using (mini)Conda at all ?

I think building might be easier with Homebrew rather than Conda, too.

Cheers,
Dima


On Thursday, November 11, 2021 at 7:00:06 PM UTC harald@gmail.com wrote:

> Hi,
>
> I'm trying to build Sagemath from source (within miniconda) on an 
> Intel-based Mac Mini running MacOS Monterrey. I get:
>
> [pip-21.1.2] Error building a wheel for pip-21.1.2
> ...
>
> [pip-21.1.2] Error installing package pip-21.1.2
>
> See the log files.
>
> Best
>
> Harald
>

-- 
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/c95cfc0d-c1ea-41b9-8038-c360479af7efn%40googlegroups.com.


[sage-devel] Re: pip-21.1.2 compile fails on MacOS

2021-11-11 Thread harald....@gmail.com
I run into the same issue without miniconda, and thus cannot build Sage at 
all.

Le jeudi 11 novembre 2021 à 20:00:06 UTC+1, harald@gmail.com a écrit :

> Hi,
>
> I'm trying to build Sagemath from source (within miniconda) on an 
> Intel-based Mac Mini running MacOS Monterrey. I get:
>
> [pip-21.1.2] Error building a wheel for pip-21.1.2
> ...
>
> [pip-21.1.2] Error installing package pip-21.1.2
>
> See the log files.
>
> Best
>
> Harald
>

-- 
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/59d418a5-b9d7-4244-98da-bb33f0ac140fn%40googlegroups.com.


Re: [sage-devel] Re: RFC: zn_poly removal

2021-11-11 Thread Alex J Best
Right, that seems like a fair benchmark to me, does zn_poly (falling back 
to ntl) run faster than the force ntl = 1 version in enough ranges of 
variables to justify its continued existence?
Knowing whether it failed and fell back (and hence was slower) or just is 
simply slower doesn't seem to matter compared to the end result, knowing 
where its slower.

Yes exactly, I forgot now why we decided to use force ntl=1 for cyclic 
covers, and indeed I forgot that we did force it completely, I really have 
no idea the reasons that went into that decision anymore unfortunately.

On Tuesday, November 9, 2021 at 10:09:38 PM UTC+1 Michael Orlitzky wrote:

> On Tue, 2021-11-09 at 10:54 -0800, Alex J Best wrote:
> > I agree the situation with zn_poly is a mess, but I think it would be 
> good 
> > to do some actual benchmarks to check if the NTL code is faster or 
> > comparable to the zn_poly version, I don't see any data in the ticket 
> but 
> > you do say "The one thing it does is done better by NTL" so maybe you 
> > already did some?
>
> It would be hard to benchmark without knowing where zn_poly fails. The
> only function in sagelib that uses zn_poly is in hypellfrob.cpp, and it
> has a comment at the top:
>
> Note that the zn_poly version occasionally fails; this happens more 
> frequently for smaller p, but is extremely rare for larger p. This 
> wrapper detects this and falls back on the zz_p/ZZ_p versions, which 
> should never fail.
>
> That's what I meant by "NTL does it better," and any benchmark would
> have to take into consideration the attempts that failed and were
> actually made with NTL instead. Certainly those cases are slower than
> if we'd just used NTL the first time.
>
>
>

-- 
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/7062f8ee-226c-41d6-ab95-ad0b0094d908n%40googlegroups.com.


Re: [sage-devel] Re: sage docs search is broken

2021-11-11 Thread Samuel Lelievre
This is tracked at

- Sage Trac ticket 29576
  Missing js objects on doc search page
  https://trac.sagemath.org/ticket/29576

-- 
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/1f02cc45-b6bc-4fbd-85df-16e6e60f235bn%40googlegroups.com.


Re: [sage-devel] Re: Stieltjes constants and ARB

2021-11-11 Thread Dima Pasechnik
On Wed, 10 Nov 2021, 09:56 Dima Pasechnik,  wrote:

> On Tue, Nov 9, 2021 at 8:13 PM harald@gmail.com
>  wrote:
> >
> > Ah, I meant RBF(erfi(1/sqrt(2)).
> >
> > I hadn't noticed I was running cocalc on Sagemath 9.2 rather than
> Sagemath 9.4. Switching to Sagemath 9.4 fixes the issue with
> RBF(stieltjes(1)).
> >
> > Now, however, I get a different error for RBF(erfi(1/sqrt(2)). See below.
> > I get the same errors as before for RBF(gamma(3/2,1)) and
> RIF(gamma(3/2,1)).
> one needs to wrap
> arb_hypgeom_gamma_upper(), see
>
> https://arblib.org/arb_hypgeom.html?highlight=incomplete#incomplete-gamma-and-beta-functions
> to get RBF(gamma(3/2,1)) to work
>
> I've opened https://trac.sagemath.org/ticket/32851 to deal with this.
> Probably RBF(erfi()) should be treated there too.
>

needs review now (after an initial confusion on my side)


>
> >
> > Harald
> > PS. Here is the output for RBF(erfi(1/sqrt(2))):
> >
> > RecursionError Traceback (most recent call last)
>  in  > 1
> RBF(erfi(Integer(1)/sqrt(Integer(2
> /ext/sage/9.4/local/lib/python3.9/site-packages/sage/structure/parent.pyx
> in sage.structure.parent.Parent.__call__
> (build/cythonized/sage/structure/parent.c:9338)() 896 if mor is not None:
> 897 if no_extra_args: --> 898 return mor._call_(x) 899 else: 900 return
> mor._call_with_args(x, args, kwds)
> /ext/sage/9.4/local/lib/python3.9/site-packages/sage/structure/coerce_maps.pyx
> in sage.structure.coerce_maps.NamedConvertMap._call_
> (build/cythonized/sage/structure/coerce_maps.c:6042)() 285 raise
> TypeError("Cannot coerce {} to {}".format(x, C)) 286 cdef Map m --> 287
> cdef Element e = method(C) 288 if e is None: 289 raise RuntimeError("BUG in
> coercion model: {} method of {} returned None".format(self.method_name,
> type(x)))
> /ext/sage/9.4/local/lib/python3.9/site-packages/sage/symbolic/expression.pyx
> in sage.symbolic.expression.Expression._arb_
> (build/cythonized/sage/symbolic/expression.cpp:11830)() 1647 pass 1648
> else: -> 1649 return R(res) 1650 # Typically more informative and
> consistent than the exceptions that 1651 # would propagate
> /ext/sage/9.4/local/lib/python3.9/site-packages/sage/structure/parent.pyx
> in sage.structure.parent.Parent.__call__
> (build/cythonized/sage/structure/parent.c:9338)() 896 if mor is not None:
> 897 if no_extra_args: --> 898 return mor._call_(x) 899 else: 900 return
> mor._call_with_args(x, args, kwds)
> /ext/sage/9.4/local/lib/python3.9/site-packages/sage/structure/coerce_maps.pyx
> in sage.structure.coerce_maps.NamedConvertMap._call_
> (build/cythonized/sage/structure/coerce_maps.c:6042)() 285 raise
> TypeError("Cannot coerce {} to {}".format(x, C)) 286 cdef Map m --> 287
> cdef Element e = method(C) 288 if e is None: 289 raise RuntimeError("BUG in
> coercion model: {} method of {} returned None".format(self.method_name,
> type(x)))
> /ext/sage/9.4/local/lib/python3.9/site-packages/sage/symbolic/expression.pyx
> in sage.symbolic.expression.Expression._arb_
> (build/cythonized/sage/symbolic/expression.cpp:11830)() 1647 pass 1648
> else: -> 1649 return R(res) 1650 # Typically more informative and
> consistent than the exceptions that 1651 # would propagate
> /ext/sage/9.4/local/lib/python3.9/site-packages/sage/structure/parent.pyx
> in sage.structure.parent.Parent.__call__
> (build/cythonized/sage/structure/parent.c:9338)() 896 if mor is not None:
> 897 if no_extra_args: --> 898 return mor._call_(x) 899 else: 900 return
> mor._call_with_args(x, args, kwds)
> /ext/sage/9.4/local/lib/python3.9/site-packages/sage/structure/coerce_maps.pyx
> in sage.structure.coerce_maps.NamedConvertMap._call_
> (build/cythonized/sage/structure/coerce_maps.c:6042)() 285 raise
> TypeError("Cannot coerce {} to {}".format(x, C)) 286 cdef Map m --> 287
> cdef Element e = method(C) 288 if e is None: 289 raise RuntimeError("BUG in
> coercion model: {} method of {} returned None".format(self.method_name,
> type(x)))
> /ext/sage/9.4/local/lib/python3.9/site-packages/sage/symbolic/expression.pyx
> in sage.symbolic.expression.Expression._arb_
> (build/cythonized/sage/symbolic/expression.cpp:11830)() 1647 pass 1648
> else: -> 1649 return R(res) 1650 # Typically more informative and
> consistent than the exceptions that 1651 # would propagate
> /ext/sage/9.4/local/lib/python3.9/site-packages/sage/structure/parent.pyx
> in sage.structure.parent.Parent.__call__
> (build/cythonized/sage/structure/parent.c:9338)() 896 if mor is not None:
> 897 if no_extra_args: --> 898 return mor._call_(x) 899 else: 900 return
> mor._call_with_args(x, args, kwds)
> /ext/sage/9.4/local/lib/python3.9/site-packages/sage/structure/coerce_maps.pyx
> in sage.structure.coerce_maps.NamedConvertMap._call_
> (build/cythonized/sage/structure/coerce_maps.c:6042)() 285 raise
> TypeError("Cannot coerce {} to {}".format(x, C)) 286 cdef Map m --> 287
> cdef Element e = method(C) 288 if e is None: 289 raise RuntimeError("BUG in
> coercion model: {} method of {} returned None".format(self.method_name,
>