Re: Numpy & dh_python2

2012-03-19 Thread Sandro Tosi
On Sun, Mar 18, 2012 at 15:28, Julian Taylor
 wrote:
> thanks for updating numpy and adding py3.
> There is a failure in the testsuite in experimental that doesn't occur
> in testing. The build only works because the result of the tests are
> ignored in rules (and it is not documented why).
> Is this known?

I think it was discussed recently, anyhow the reason is that numpy
tends to need several fixed on uncommon architectures when a new
upstream release, so I'm lazy and I leave the tests to not-fail, so I
can collect several errors and contact upstream in batch, instead of
"fix a arch - reupload - another arch fail - ask upstream" dance. It
just needs to check the log of the build...

> Running unit tests for numpy
> NumPy version 1.6.1
> NumPy is installed in
> /build/buildd-python-numpy_1.6.1-6-i386-lYkcLV/python-numpy-1.6.1/debian/tmp/usr/lib/python2.7/dist-packages/numpy
> Python version 2.7.3rc1 (default, Mar 10 2012, 00:01:06) [GCC 4.6.3]
> nose version 1.1.2
> .Debug memory block at address p=0xaa13400: API 'm'
>    8 bytes originally requested
>    The 3 pad bytes at p-3 are FORBIDDENBYTE, as expected.
>    The 4 pad bytes at tail=0xaa13408 are FORBIDDENBYTE, as expected.
>    The block was made by call #1026630 to debug malloc/realloc.
>    Data at p: a3 03 00 00 00 00 00 00
> Fatal Python error: bad ID: Allocated using API 'm', verified using API 'o'
> Running unit tests for numpy
> NumPy version 1.6.1
> NumPy is installed in
> /build/buildd-python-numpy_1.6.1-6-i386-lYkcLV/python-numpy-1.6.1/debian/tmp/usr/lib/python2.7/dist-packages/numpy
> Python version 2.7.3rc1 (default, Mar  9 2012, 23:29:14) [GCC 4.6.3]
> nose version 1.1.2
> Aborted

... which clearly I didn't this time :( could you please file a bug
about that? it fails on 2.7.3rc1 and on 3.2.3rc1 so I suspect it's
related to some recent upstream changes. i'm already opening a bug
upstream.

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAB4XWXxyLHowCjhVaytp02u80=akch4fjwouuyurukqog9-...@mail.gmail.com



Re: Numpy & dh_python2

2012-03-19 Thread Tiziano Zito
I just wanted to thank Sandro and Thomas for their work on numpy for
python3. The availability of python3-numpy in Debian is a *huge*
step forward for the adoption/migration to python3 for scientific
applications. 

Ciao,
Tiziano

On Sat 17 Mar, 16:00, Sandro Tosi wrote:
> On Sat, Mar 17, 2012 at 00:09, Sandro Tosi  wrote:
> > On Fri, Mar 16, 2012 at 15:05, Sandro Tosi  wrote:
> >> Well, before I can say anything more I'll have to get my hands dirty.
> >
> > that I'm doing right away; I've committed your diff as you sent, and
> > I'm working on polishing it a bit, something including:
> >
> > - include dirs for py3k
> > - f2py for py3k
> > - tests are not run for python 3 interpreters
> >
> > just minor stuff like that.
> 
> that stuff is done and the package is uploaded: Thanks for your contribution!
> 
> Cheers,
> -- 
> Sandro Tosi (aka morph, morpheus, matrixhasu)
> My website: http://matrixhasu.altervista.org/
> Me at Debian: http://wiki.debian.org/SandroTosi
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: 
> http://lists.debian.org/CAB4XWXyaBstPXT=udylybx0vq1rvv-koengcl0f-wdcrwft...@mail.gmail.com
> 


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20120319124047.gk25...@bio230.biologie.hu-berlin.de



Re: Numpy & dh_python2

2012-03-18 Thread Julian Taylor
On 03/17/2012 04:00 PM, Sandro Tosi wrote:
> On Sat, Mar 17, 2012 at 00:09, Sandro Tosi  wrote:
>> On Fri, Mar 16, 2012 at 15:05, Sandro Tosi  wrote:
>>> Well, before I can say anything more I'll have to get my hands dirty.
>>
>> that I'm doing right away; I've committed your diff as you sent, and
>> I'm working on polishing it a bit, something including:
>>
>> - include dirs for py3k
>> - f2py for py3k
>> - tests are not run for python 3 interpreters
>>
>> just minor stuff like that.
> 
> that stuff is done and the package is uploaded: Thanks for your contribution!
> 
> Cheers,

thanks for updating numpy and adding py3.
There is a failure in the testsuite in experimental that doesn't occur
in testing. The build only works because the result of the tests are
ignored in rules (and it is not documented why).
Is this known?

Running unit tests for numpy
NumPy version 1.6.1
NumPy is installed in
/build/buildd-python-numpy_1.6.1-6-i386-lYkcLV/python-numpy-1.6.1/debian/tmp/usr/lib/python2.7/dist-packages/numpy
Python version 2.7.3rc1 (default, Mar 10 2012, 00:01:06) [GCC 4.6.3]
nose version 1.1.2
.Debug memory block at address p=0xaa13400: API 'm'
8 bytes originally requested
The 3 pad bytes at p-3 are FORBIDDENBYTE, as expected.
The 4 pad bytes at tail=0xaa13408 are FORBIDDENBYTE, as expected.
The block was made by call #1026630 to debug malloc/realloc.
Data at p: a3 03 00 00 00 00 00 00
Fatal Python error: bad ID: Allocated using API 'm', verified using API 'o'
Running unit tests for numpy
NumPy version 1.6.1
NumPy is installed in
/build/buildd-python-numpy_1.6.1-6-i386-lYkcLV/python-numpy-1.6.1/debian/tmp/usr/lib/python2.7/dist-packages/numpy
Python version 2.7.3rc1 (default, Mar  9 2012, 23:29:14) [GCC 4.6.3]
nose version 1.1.2
Aborted



signature.asc
Description: OpenPGP digital signature


Re: Numpy & dh_python2

2012-03-17 Thread Thomas Kluyver
On 17 March 2012 15:00, Sandro Tosi  wrote:
> that stuff is done and the package is uploaded: Thanks for your contribution!

Great, thanks for putting in the time to finalise it.

Thomas


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caovn4qhbq4am5mdmrxh7wt+0zsastmo7ecr30-yghapowda...@mail.gmail.com



Re: Numpy & dh_python2

2012-03-17 Thread Sandro Tosi
On Sat, Mar 17, 2012 at 00:09, Sandro Tosi  wrote:
> On Fri, Mar 16, 2012 at 15:05, Sandro Tosi  wrote:
>> Well, before I can say anything more I'll have to get my hands dirty.
>
> that I'm doing right away; I've committed your diff as you sent, and
> I'm working on polishing it a bit, something including:
>
> - include dirs for py3k
> - f2py for py3k
> - tests are not run for python 3 interpreters
>
> just minor stuff like that.

that stuff is done and the package is uploaded: Thanks for your contribution!

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAB4XWXyaBstPXT=udylybx0vq1rvv-koengcl0f-wdcrwft...@mail.gmail.com



Re: Numpy & dh_python2

2012-03-17 Thread Sandro Tosi
On Sat, Mar 17, 2012 at 06:46, Matthias Klose  wrote:
> On 16.03.2012 14:29, Jakub Wilk wrote:
>>
>> * Matthias Klose , 2012-03-16, 13:36:
>>>
>>> re-adding myself as an uploader, apparently silently removed.
>>
>>
>> Well, from my IRC log (2011-08-27):
>>
>> 22:43 < jwilk> morph_: Out of interest, did you ask the former Numpy
>> co-maintainers if they are ok with removing them from Uploaders? :>
>> 22:43 < morph_> jwilk: of course
>> 22:43 < jwilk> Did they reply?
>> 22:43 < morph_> jwilk: no all of them, I gave 2 weeks of time to do that
>>
>> (Presumably "no all" is a typo for "none".)
>>
>> Also, you surely received this mail, which is quite explicit:
>> http://lists.debian.org/debian-devel-changes/2011/09/msg01361.html
>
>
> how would I get this email, if I am removed from the uploaders?

stop bitching around: did you get the mail I sent you on August? other
recipients of the same email recieved it, and no mail bounce, so if
you decided to ignore/delete the email, blame yourself only.

-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAB4XWXxjxOEHrqNLeDtdewuw87PJgnW-o5jEAD=nc3u1mdk...@mail.gmail.com



Re: Numpy & dh_python2

2012-03-16 Thread Matthias Klose

On 16.03.2012 14:29, Jakub Wilk wrote:

* Matthias Klose , 2012-03-16, 13:36:

re-adding myself as an uploader, apparently silently removed.


Well, from my IRC log (2011-08-27):

22:43 < jwilk> morph_: Out of interest, did you ask the former Numpy
co-maintainers if they are ok with removing them from Uploaders? :>
22:43 < morph_> jwilk: of course
22:43 < jwilk> Did they reply?
22:43 < morph_> jwilk: no all of them, I gave 2 weeks of time to do that

(Presumably "no all" is a typo for "none".)

Also, you surely received this mail, which is quite explicit:
http://lists.debian.org/debian-devel-changes/2011/09/msg01361.html


how would I get this email, if I am removed from the uploaders?


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f642539.5070...@debian.org



Re: Numpy & dh_python2

2012-03-16 Thread Sandro Tosi
On Fri, Mar 16, 2012 at 15:05, Sandro Tosi  wrote:
> Well, before I can say anything more I'll have to get my hands dirty.

that I'm doing right away; I've committed your diff as you sent, and
I'm working on polishing it a bit, something including:

- include dirs for py3k
- f2py for py3k
- tests are not run for python 3 interpreters

just minor stuff like that.

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cab4xwxwjbrgv49dwbn4wct6a_vubhcr2fldhdwx0kjaqomm...@mail.gmail.com



Re: Numpy & dh_python2

2012-03-16 Thread Sandro Tosi
On Fri, Mar 16, 2012 at 14:38, Thomas Kluyver  wrote:
> On 16 March 2012 13:35, Sandro Tosi  wrote:
>> Thanks a lot for your work! I just gave it a quick look (i.e. reading
>> the patch) and it seems that would work (at least for the packaging
>> part). It would be also nice if you could post your patch at
>> 601...@bugs.debian.org, so also the BTS will be notified of the
>> available patch.
>
> Great, thanks Sandro, I'll post it to the bug. Let me know if there's

cool!

> anything else I should be doing with it.

Well, before I can say anything more I'll have to get my hands dirty.

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAB4XWXx3faof_aGvGrN+KNasVTYise4GogJi=_13U0kNEsHi=g...@mail.gmail.com



Re: Numpy & dh_python2

2012-03-16 Thread Sandro Tosi
Hi Thomas,

On Fri, Mar 16, 2012 at 02:15, Thomas Kluyver  wrote:
> After some trial and error, I've got it building python3-numpy
> (leaving python-support in place for Python 2) - a patch is attached.
> I've checked that I can install and import the built package.
>
> Changes and suggestions are welcome, and I expect there are better
> ways to do bits of it. I'm away for the weekend, so it'll be a few
> days before I can work on it again. For now, I've ignored the dh_numpy
> and ABI/API versions, but I guess we'll want to make Py3 versions of
> them.

Thanks a lot for your work! I just gave it a quick look (i.e. reading
the patch) and it seems that would work (at least for the packaging
part). It would be also nice if you could post your patch at
601...@bugs.debian.org, so also the BTS will be notified of the
available patch.

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAB4XWXyPKa_7MKa_rX368N=dDdMfynSFWaXfneM2=1n7j78...@mail.gmail.com



Re: Numpy & dh_python2

2012-03-16 Thread Thomas Kluyver
On 16 March 2012 13:35, Sandro Tosi  wrote:
> Thanks a lot for your work! I just gave it a quick look (i.e. reading
> the patch) and it seems that would work (at least for the packaging
> part). It would be also nice if you could post your patch at
> 601...@bugs.debian.org, so also the BTS will be notified of the
> available patch.

Great, thanks Sandro, I'll post it to the bug. Let me know if there's
anything else I should be doing with it.

Best wishes,
Thomas


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caovn4qgpt7vg32n0po1sag39li9qgl3td+kmgors8pya_yd...@mail.gmail.com



Re: Numpy & dh_python2

2012-03-16 Thread Sandro Tosi
On Fri, Mar 16, 2012 at 13:36, Matthias Klose  wrote:
> On 16.03.2012 02:15, Thomas Kluyver wrote:
>>
>> After some trial and error, I've got it building python3-numpy
>> (leaving python-support in place for Python 2) - a patch is attached.
>> I've checked that I can install and import the built package.
>>
>> Changes and suggestions are welcome, and I expect there are better
>> ways to do bits of it. I'm away for the weekend, so it'll be a few
>> days before I can work on it again. For now, I've ignored the dh_numpy
>> and ABI/API versions, but I guess we'll want to make Py3 versions of
>> them.
>
>
> thanks for the patch. I'll upload it next week, re-adding myself as an
> uploader, apparently silently removed.

you got an email, which you didn't read you were removed
because you didn't do any kind of work in numpy since years.

don't mess with transitions or touch other stuff given you will not fix them

-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAB4XWXyvshBn6vaHgOAJusAi7=o7m2q6wgjl+edmsdyv0+h...@mail.gmail.com



Re: Numpy & dh_python2

2012-03-16 Thread Jakub Wilk

* Matthias Klose , 2012-03-16, 13:36:

re-adding myself as an uploader, apparently silently removed.


Well, from my IRC log (2011-08-27):

22:43 < jwilk> morph_: Out of interest, did you ask the former Numpy 
co-maintainers if they are ok with removing them from Uploaders? :>
22:43 < morph_> jwilk: of course
22:43 < jwilk> Did they reply?
22:43 < morph_> jwilk: no all of them, I gave 2 weeks of time to do that

(Presumably "no all" is a typo for "none".)

Also, you surely received this mail, which is quite explicit:
http://lists.debian.org/debian-devel-changes/2011/09/msg01361.html

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120316132921.ga7...@jwilk.net



Re: Numpy & dh_python2

2012-03-16 Thread Matthias Klose

On 16.03.2012 02:15, Thomas Kluyver wrote:

After some trial and error, I've got it building python3-numpy
(leaving python-support in place for Python 2) - a patch is attached.
I've checked that I can install and import the built package.

Changes and suggestions are welcome, and I expect there are better
ways to do bits of it. I'm away for the weekend, so it'll be a few
days before I can work on it again. For now, I've ignored the dh_numpy
and ABI/API versions, but I guess we'll want to make Py3 versions of
them.


thanks for the patch. I'll upload it next week, re-adding myself as an uploader, 
apparently silently removed.


  Matthias


--
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f6333db.6080...@debian.org



Re: Numpy & dh_python2

2012-03-15 Thread Thomas Kluyver
After some trial and error, I've got it building python3-numpy
(leaving python-support in place for Python 2) - a patch is attached.
I've checked that I can install and import the built package.

Changes and suggestions are welcome, and I expect there are better
ways to do bits of it. I'm away for the weekend, so it'll be a few
days before I can work on it again. For now, I've ignored the dh_numpy
and ABI/API versions, but I guess we'll want to make Py3 versions of
them.

Thanks,
Thomas


py3-numpy.patch
Description: Binary data


Re: Numpy & dh_python2

2012-03-15 Thread Barry Warsaw
On Mar 15, 2012, at 10:11 AM, Scott Kitterman wrote:

>Thomas Kluyver  wrote:
>>Sandro:
>>> I won't migrate to dh_python2, so it would be a waste of your time.
>>
>>Why not? I thought python-support was deprecated, and everything was
>>supposed to move to dh_python2?
>>
>>So, is it practical to usek dh_python3 for python 3 while keeping
>>python-support for python 2?
>
>It's the maintainers choice. I'd encourage people to switch, but it's up to
>them.

True, but to Thomas's question above, both python-support and python-central
are deprecated.

-Barry


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120315090140.3700f961@resist



Re: Numpy & dh_python2

2012-03-15 Thread Scott Kitterman


Thomas Kluyver  wrote:
>Sandro:
>> I won't migrate to dh_python2, so it would be a waste of your time.
>
>Why not? I thought python-support was deprecated, and everything was
>supposed to move to dh_python2?
>
>So, is it practical to usek dh_python3 for python 3 while keeping
>python-support for python 2?

It's the maintainers choice. I'd encourage people to switch, but it's up to 
them.

Mixing the two is no problem.

Scott K


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aff88e5f-a1ef-4ae1-9680-d63b95fee...@email.android.com



Re: Numpy & dh_python2

2012-03-15 Thread Thomas Kluyver
On 15 March 2012 12:45, Yaroslav Halchenko  wrote:
> So, my blunt guess would be that with dh_python2 you would not need this
> and just would need to place the .a appropriately.

Thanks, I'll give it a shot.

When the comments talk about adding files *back*, is it pysupport that
removes them? How is it determining which files to remove?

Sandro:
> I won't migrate to dh_python2, so it would be a waste of your time.

Why not? I thought python-support was deprecated, and everything was
supposed to move to dh_python2?

So, is it practical to use dh_python3 for python 3 while keeping
python-support for python 2?

Thomas


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caovn4qhs5o4d-lh2u8o6w-tovekts8yqvynf72zmixwqcyf...@mail.gmail.com



Re: Numpy & dh_python2

2012-03-15 Thread Sandro Tosi
On Thu, Mar 15, 2012 at 13:12, Thomas Kluyver  wrote:
> I was looking at packaging numpy for Python 3 (bug #601593, LP

thanks for your work, but...

> #795605). As a step towards this, I was trying to convert it from
> pysupport to dh_python2, following the 'transition to dh_python2'

I won't migrate to dh_python2, so it would be a waste of your time.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAB4XWXxBxW4e5QtDgYaqvvrQTQ8rSDPyx=9gogd-n-03kjt...@mail.gmail.com



Re: Numpy & dh_python2

2012-03-15 Thread Yaroslav Halchenko
preceeding comment kinda describes it all:

# GIGANTIC HACK - add back libnpymath.a
# get the file names, generate the new location, create the dir if missing, 
copy
# the file and then add it to the public list

so it just adds those few trailing lines with libnpymath.a .  I am really not
an expert in dh_pysupport but .public files seems to serve per-package registry
of supported Python versions and public modules and extensions so pysupport
would know what to compile/symlink in its
/usr/sbin/update-python-modules.

So, my blunt guess would be that with dh_python2 you would not need this
and just would need to place the .a appropriately.

> I was looking at packaging numpy for Python 3 (bug #601593, LP
> #795605). As a step towards this, I was trying to convert it from
> pysupport to dh_python2, following the 'transition to dh_python2'
> guide. But I hit a section that I don't really understand, in
> override_dh_pysupport:

> # add to public modules list ;\
> echo $$installedfile >>
> ./debian/python-numpy/usr/share/python-support/python-numpy.public ;\

> What's the significance of the public modules list? Is there an
> equivalent for dh_python2?

> Thanks,
> Thomas
-- 
=--=
Keep in touch www.onerussian.com
Yaroslav Halchenko www.ohloh.net/accounts/yarikoptic


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120315124513.gr16...@onerussian.com