building python-numpy on

2011-10-06 Thread Faheem Mitha


Hi,

I was trying to rebuild python-numpy 1.6.1-3 (the version currently in 
experimental) on squeeze. A straight


debuild binary

seems to come really close. I do need to get python-sphinx from backports.

It errors out at the end with the following error. I don't have any idea 
how to fix it.


Can anyone help me get past this? Please CC me on any reply, I'm not 
subscribed. Thanks.


 Regards, Faheem

*

Ran 3541 tests in 44.650s

OK (KNOWNFAIL=3, SKIP=4)
[255665 refs]
Traceback (most recent call last):
  File "", line 1, in 
  File "numpy/__init__.py", line 127, in 
raise ImportError(msg)
ImportError: Error importing numpy: you should not try to import numpy 
from
its source directory; please exit the numpy source tree, and 
relaunch

your python intepreter from there.
Traceback (most recent call last):
  File "", line 1, in 
  File "numpy/__init__.py", line 127, in 
raise ImportError(msg)
ImportError: Error importing numpy: you should not try to import numpy 
from
its source directory; please exit the numpy source tree, and 
relaunch

your python intepreter from there.
[7401 refs]
make[1]: [override_dh_auto_install] Error 1 (ignored)
make[1]: Leaving directory `/usr/local/src/numpy/python-numpy-1.6.1'
   debian/rules override_dh_install
make[1]: Entering directory `/usr/local/src/numpy/python-numpy-1.6.1'
# add shebang information to f2py script
for v in 2.6 2.5; do \
sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$v," 
debian/tmp/usr/bin/f2py$v; \
cp -a debian/tmp/usr/bin/f2py$v 
debian/tmp/usr/bin/f2py$v-dbg ; \
sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$v-dbg," 
debian/tmp/usr/bin/f2py$v-dbg; \

done
# install unversioned f2py script
dh_link usr/bin/f2py2.6 usr/bin/f2py
dh_link -ppython-numpy-dbg usr/bin/f2py2.6-dbg usr/bin/f2py-dbg
# moving those scripts away until after pysupport has run, to not
# generate depends on pythonx.y
mkdir debian/tmp2
mv debian/tmp/usr/bin/* debian/tmp2
dh_install
cp: cannot stat `debian/tmp/doc/build/html': No such file or directory
dh_install: cp -a debian/tmp/doc/build/html 
debian/python-numpy-doc//usr/share/doc/python-numpy-doc// returned exit 
code 1

make[1]: *** [override_dh_install] Error 2
make[1]: Leaving directory `/usr/local/src/numpy/python-numpy-1.6.1'
make: *** [binary] Error 2
debuild: fatal error at line 1307:
couldn't exec fakeroot debian/rules: Bad file descriptor


--
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/alpine.deb.2.00.1110061200210.21...@orwell.homelinux.org



Re: [Python-modules-team] building python-numpy on

2011-10-06 Thread Sandro Tosi
On Thu, Oct 6, 2011 at 08:40, Faheem Mitha  wrote:
> Ran 3541 tests in 44.650s
>
> OK (KNOWNFAIL=3, SKIP=4)
> [255665 refs]
> Traceback (most recent call last):
>  File "", line 1, in 
>  File "numpy/__init__.py", line 127, in 
>    raise ImportError(msg)
> ImportError: Error importing numpy: you should not try to import numpy from
>        its source directory; please exit the numpy source tree, and relaunch
>        your python intepreter from there.

you have to fix the tests "trick" to avoid importing numpy from . but
from the installed location. Or disable test completely.

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/capdtaj3bfq0we6nn1aoc2ry23j6xblsyq7mfoe28b_cich9...@mail.gmail.com



Re: Dependencies with cType

2011-10-06 Thread Piotr Ożarowski
> >> There are no definitive mappings between Cheeseshop names and Debian
> >> package names, but
> >
> >take a look at /usr/share/python/dist_fallback, sane ones are not listed
> >there, though
> 
> Ah neat.  Do you keep that updated manually?

semi-manually (it's not run in every python-defaults build as it
requires network)

`apt-get source python-defaults; cd python-defaults-*; \
 rm pydist/dist_fallback; make dist_fallback`

should regenerate it for you. If you want to include names dh_python2
will guess correctly, you can:

`python ./pydist/generate_fallback_list.py`

i.e. without --skip-sensible-names
-- 
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl  www.griffith.cc   www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


-- 
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/20111006075249.gx19...@piotro.eu



python 2.7 in wheezy

2011-10-06 Thread Julien Cristau
Hi,

as of the just finished britney run, the /usr/bin/python symlink points
to python2.7 in wheezy.

In this process, a number of packages had to be removed from testing to
avoid more waiting time and complications.  They should be able to
migrate back quickly on their own, but if you maintain one of those
packages and need help, please feel free to contact the release team.
Likewise if you discover that your package is incompatible with the new
python version and you want to get a fix into testing ASAP.

Cheers,
Julien


signature.asc
Description: Digital signature


Re: [Python-modules-team] building python-numpy on

2011-10-06 Thread Faheem Mitha



On Thu, 6 Oct 2011, Sandro Tosi wrote:


On Thu, Oct 6, 2011 at 08:40, Faheem Mitha  wrote:

Ran 3541 tests in 44.650s

OK (KNOWNFAIL=3, SKIP=4)
[255665 refs]
Traceback (most recent call last):
 File "", line 1, in 
 File "numpy/__init__.py", line 127, in 
   raise ImportError(msg)
ImportError: Error importing numpy: you should not try to import numpy from
       its source directory; please exit the numpy source tree, and relaunch
       your python intepreter from there.


you have to fix the tests "trick" to avoid importing numpy from . but
from the installed location. Or disable test completely.


Hi Sandro,

Yes, I see that the lines

ifeq (,$(findstring notest,$(DEB_BUILD_OPTIONS)))
-for v in $(PYVERS) ; do \
python$$v -c "import sys ; sys.path.insert(0, 
'$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; 
numpy.test()" ; \
python$$v-dbg -c "import sys ; sys.path.insert(0, 
'$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; 
numpy.test()" ; \
done
endif

are failing. Is that the problem?

I don't see why the trick here is failing. It looks like it should work. 
It does if I perform the tests manually. Ie. add the local path to 
sys.path first, and then import numpy, and run numpy.test().


To disable the tests, should I just comment out those lines, or should I 
set DEB_BUILD_OPTIONS, and if so where?


I'm not sure why the tests are run as part of the build anyway.

   Regards, Faheem

Re: [Python-modules-team] building python-numpy on

2011-10-06 Thread Sandro Tosi
On Thu, Oct 6, 2011 at 13:57, Faheem Mitha  wrote:

> It doesn't look like the tests are the problem. If I comment them out, I
> still get a failure at the same place.
..
> dh_install
> cp: cannot stat `debian/tmp/doc/build/html': No such file or directory
> dh_install: cp -a debian/tmp/doc/build/html
> debian/python-numpy-doc//usr/share/doc/python-numpy-doc// returned exit code

yeah it's here: you need to build the doc.

-- 
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/CAPdtAj2duDEBeR-2+D0W0jes=9mouu-jgqtdjflopmcapbx...@mail.gmail.com



Re: [Python-modules-team] building python-numpy on

2011-10-06 Thread Faheem Mitha



On Thu, 6 Oct 2011, Faheem Mitha wrote:


On Thu, 6 Oct 2011, Sandro Tosi wrote:


On Thu, Oct 6, 2011 at 08:40, Faheem Mitha  wrote:

Ran 3541 tests in 44.650s

OK (KNOWNFAIL=3, SKIP=4)
[255665 refs]
Traceback (most recent call last):
 File "", line 1, in 
 File "numpy/__init__.py", line 127, in 
   raise ImportError(msg)
ImportError: Error importing numpy: you should not try to import numpy 
from
       its source directory; please exit the numpy source tree, and 
relaunch

       your python intepreter from there.


you have to fix the tests "trick" to avoid importing numpy from . but
from the installed location. Or disable test completely.


Hi Sandro,

Yes, I see that the lines

ifeq (,$(findstring notest,$(DEB_BUILD_OPTIONS)))
   -for v in $(PYVERS) ; do \
   python$$v -c "import sys ; sys.path.insert(0, 
'$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; 
numpy.test()" ; \
   python$$v-dbg -c "import sys ; sys.path.insert(0, 
'$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; 
numpy.test()" ; \

   done
endif

are failing. Is that the problem?


It doesn't look like the tests are the problem. If I comment them out, I 
still get a failure at the same place.


##

running install_egg_info
Removing 
/usr/local/src/numpy/python-numpy-1.6.1/debian/tmp/usr/lib/python2.6/dist-packages/numpy-1.6.1.egg-info
Writing 
/usr/local/src/numpy/python-numpy-1.6.1/debian/tmp/usr/lib/python2.6/dist-packages/numpy-1.6.1.egg-info

running install_clib
copying build/temp.linux-i686-2.6/libnpymath.a -> 
/usr/local/src/numpy/python-numpy-1.6.1/debian/tmp/usr/lib/python2.6/dist-packages/numpy/core/lib

# yes, we need to run tests after install
# The reason is that numpy tries hard to not let you run it from the
# source directory, so we need to mess with the import order so to
# select the code in the installation path
make[1]: Leaving directory `/usr/local/src/numpy/python-numpy-1.6.1'
   debian/rules override_dh_install
make[1]: Entering directory `/usr/local/src/numpy/python-numpy-1.6.1'
# add shebang information to f2py script
for v in 2.6 2.5; do \
sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$v," 
debian/tmp/usr/bin/f2py$v; \
cp -a debian/tmp/usr/bin/f2py$v 
debian/tmp/usr/bin/f2py$v-dbg ; \
sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$v-dbg," 
debian/tmp/usr/bin/f2py$v-dbg; \

done
# install unversioned f2py script
dh_link usr/bin/f2py2.6 usr/bin/f2py
dh_link -ppython-numpy-dbg usr/bin/f2py2.6-dbg usr/bin/f2py-dbg
# moving those scripts away until after pysupport has run, to not
# generate depends on pythonx.y
mkdir debian/tmp2
mv debian/tmp/usr/bin/* debian/tmp2
dh_install
cp: cannot stat `debian/tmp/doc/build/html': No such file or directory
dh_install: cp -a debian/tmp/doc/build/html 
debian/python-numpy-doc//usr/share/doc/python-numpy-doc// returned exit 
code 1

make[1]: *** [override_dh_install] Error 2
make[1]: Leaving directory `/usr/local/src/numpy/python-numpy-1.6.1'
make: *** [binary] Error 2
debuild: fatal error at line 1307:
couldn't exec fakeroot debian/rules: Bad file descriptor

Re: python-mysqldb 1.2.3

2011-10-06 Thread Jonas Meurer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey Mario,

Am 02.08.2011 01:12, schrieb Bernd Zeimetz:
> On 07/25/2011 01:47 AM, Mario Limonciello wrote:
>> I've provided the duff, just needs someone to sponsor.
> 
> Could you commit everything in the modules' team repository?

I agree with Bernd, that commiting your changes to the python-modules'
svn repository would be a good starting point. It eases the work for
sponsors a lot, and helps to keep ubuntu and debian versions in sync.

Greetings,
 jonas
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJOjZjpAAoJEFJi5/9JEEn+wccP+wZdrAEJspYHEggKIChuUSQg
rszRi4HVqaTtHVEFRtBCuSWaXeTjrfPemxDTlO1lUwCrAA0yNwb3V8wWsfO6Z1ty
EzQ9pbSir1pMw1uEs298X14r70IabN/DWUo4IXgc8Epm6dIEm6rh6MBdEc9AE5DH
9tCXCIvUqMkj2kbvE6uf5zkkxyngsx7qRzSj7QoJ148/gE8P35RKiE8eecDJIZBG
52FSFOEADP4iAirS20tDS5yMwelFPZKUbuwDSnbTGWtgCPzXbLVALJ9GGCws8Y0O
kbVlunX54VO/tZ6yIbNN+btzyv7jNGVKZg11oGE36k29bCNIVBxIEaRqKzs24bK7
zxCf6n/B8w3gPRBDt9sBWePjnrbJzbtRe/PRiJWQsWeoUmzIDJhmrqiJFucU/9Jb
Egt/6EbLjYB3v87pgRlWtAvvocelwaTNB1YjuEKfmmYaA/+mvbigHaQo2VMgCxbZ
o9KmOVVOj2LxnFY1g5q7aCbmF723ykdTKjWe3xL8b9320rYc3hxZ/aGUFhzAteii
e6hTyHEiy1aGFqb1USYZwvQvCiJzkPeanUxk3smzwJTxjuJXy1Xl8J2W38dydOHw
zU5lf2vIZhujihlDU1xkH0OJmNTUnNerX+6PmQPTLROjtjjl5J5emyvtQFGogjjG
xI8SQ317C6KHSVn0rCsT
=8PAI
-END PGP SIGNATURE-


-- 
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/4e8d98f0.8070...@freesources.org



Re: [Python-modules-team] building python-numpy on

2011-10-06 Thread Faheem Mitha



On Thu, 6 Oct 2011, Sandro Tosi wrote:


On Thu, Oct 6, 2011 at 13:57, Faheem Mitha  wrote:


It doesn't look like the tests are the problem. If I comment them out, I
still get a failure at the same place.

..

dh_install
cp: cannot stat `debian/tmp/doc/build/html': No such file or directory
dh_install: cp -a debian/tmp/doc/build/html
debian/python-numpy-doc//usr/share/doc/python-numpy-doc// returned exit code


yeah it's here: you need to build the doc.


Can you elaborate? Are you saying the current package does not build the 
docs? And if so, how would one do so?


  Thanks, Faheem


--
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/alpine.deb.2.00.1110061822040.21...@orwell.homelinux.org



Re: python 2.7 in wheezy

2011-10-06 Thread Thomas Waldmann
Cool!

Not for squeeze (as I discussed recently), but it is nice to hear that
we don't have the same "no python 2.7" issue in wheezy, but even have it
as default then.

Considering that it'll take a while until wheezy gets stable, I hope
there is also a python 3.x (x=rather latest) then, so that projects can
do a python3 migration without running into basic issues then.

So thanks to everybody who is involved in the effort.



-- 
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/1317910364.18056.30.ca...@server.firma.waldmann-edv.de



Re: python 2.7 in wheezy

2011-10-06 Thread Andrey Rahmatullin
On Thu, Oct 06, 2011 at 04:12:44PM +0200, Thomas Waldmann wrote:
> Considering that it'll take a while until wheezy gets stable, I hope
> there is also a python 3.x (x=rather latest) then, so that projects can
> do a python3 migration without running into basic issues then.
3.2 is already there.

-- 
WBR, wRAR


signature.asc
Description: Digital signature


Re: python 2.7 in wheezy

2011-10-06 Thread Scott Kitterman
On Thursday, October 06, 2011 08:50:30 PM Andrey Rahmatullin wrote:
> On Thu, Oct 06, 2011 at 04:12:44PM +0200, Thomas Waldmann wrote:
> > Considering that it'll take a while until wheezy gets stable, I hope
> > there is also a python 3.x (x=rather latest) then, so that projects can
> > do a python3 migration without running into basic issues then.
> 
> 3.2 is already there.

It's probably worth reiterating that python and python3 are separate runtime 
systems in Debian (and pointing /usr/bin/python at some python3 version is not 
contemplated).

Like python2.7 is the default python, python3.2 is the default python3.

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/4069835.7tY4bief3D@scott-latitude-e6320