Re: dh-python in unstable

2013-09-09 Thread Dmitrijs Ledkovs
On 2 August 2013 14:15, Piotr Ożarowski  wrote:
> dh-python is already in unstable \o/
>
> To build/install python3-foo or pypy-foo binary packages,
> you can use this in debian/rules:
>
> %:
> dh $@ --with python2,python3,pypy --buildsystem=pybuild
>
> or if you don't want to play with .install files:
>
> export PYBUILD_DESTDIR_python2=debian/python-foo/
> export PYBUILD_DESTDIR_python2-dbg=debian/python-foo-dbg/
> export PYBUILD_DESTDIR_python3=debian/python3-foo/
> export PYBUILD_DESTDIR_python3-dbg=debian/python3-foo-dbg/
> export PYBUILD_DESTDIR_pypy=debian/pypy-foo/
>
> %:
> dh $@ --with python2,python3,pypy --buildsystem=pybuild
>
> See pybuild(1) and dh_pypy(1) for more info.
> Note that adding dh-python to Build-Depends enables multiarch support in 
> dh_python2

There is package that needs sources to be processed with 2to3, before
doing the python3 build. So far I have failed to build the package
properly with pybuild.
I've tried setting PYBUILD_D_python3= to directory with processed
source files, but that resulted in python3 unit-tests still running
against "normal" python2 sources.
Setting PYBUILD_BEFORE_BUILD_python3 to process the sources in-tree,
resulted instead python2 unit-tests running against python3 code which
fails.
Is there an example of using pybuild with 2to3 style build?

Package is paste.

Regards,

Dmitrijs.


--
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/CANBHLUjy=gF9X6MJigs5AH5-b+wjwL=BpFdUyWn=qxtsoot...@mail.gmail.com



Re: dh-python in unstable

2013-08-30 Thread Mathias Behrle
* Piotr Ożarowski: " Re: dh-python in unstable" (Fri, 30 Aug 2013 08:54:33
  +0200):

> [Barry Warsaw, 2013-08-28]
>> >good idea, I'll add --name and PYBUILD_NAME
>> 
>> I'm wondering if this is (supposed to be) working yet (in
>> dh-python 1.20130819-1)?
> 
> It's planned for 1.20130830 (or 1.20130901) release :-)

Great. Also waiting for it...


-- 

Mathias Behrle
MBSolutions
Gilgenmatten 10 A
D-79114 Freiburg

Tel: +49(761)471023
Fax: +49(761)4770816
http://m9s.biz
UStIdNr: DE 142009020
PGP/GnuPG key availabable from any keyserver, ID: 0x8405BBF6


signature.asc
Description: PGP signature


Re: dh-python in unstable

2013-08-29 Thread Piotr Ożarowski
[Dmitrijs Ledkovs, 2013-08-28]
> > export PYBUILD_DESTDIR_python3=debian/python3-nose2
> 
> what caught me off-guard that above paths are relative dh_auto_*
> "--sourcedirectory" and are not relative top-level package src dir,
> aka $(CURDIR).
> I happen to have a "normal" package which has a distutils python app
> in a subdir that I need to build.
> 
> Is that a bug or a feature? Seems inconsistent from the rest of paths
> specified within debhelper.

it's a feature in most cases, a bug in PYBUILD_DESTDIR* case.
I will fix the DESTDIR case.
-- 
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/20130830065600.ga24...@p1otr.com



Re: dh-python in unstable

2013-08-29 Thread Piotr Ożarowski
[Barry Warsaw, 2013-08-28]
> >good idea, I'll add --name and PYBUILD_NAME
> 
> I'm wondering if this is (supposed to be) working yet (in
> dh-python 1.20130819-1)?

It's planned for 1.20130830 (or 1.20130901) release :-)

> All in all though, pybuild is really fantastic.  It will greatly simplify
> building Python 2 and 3 versions of most common packages.  Great work!

thanks! :-)
-- 
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/20130830065433.gz24...@p1otr.com



Re: dh-python in unstable

2013-08-28 Thread Dmitrijs Ledkovs
On 28 August 2013 21:15, Barry Warsaw  wrote:
> On Aug 02, 2013, at 05:42 PM, Piotr Ożarowski wrote:
>
>>[Barry Warsaw, 2013-08-02]
>>> On Aug 02, 2013, at 03:15 PM, Piotr Ożarowski wrote:
>>> >export PYBUILD_DESTDIR_python2=debian/python-foo/
>>> >export PYBUILD_DESTDIR_python2-dbg=debian/python-foo-dbg/
>>> >export PYBUILD_DESTDIR_python3=debian/python3-foo/
>>> >export PYBUILD_DESTDIR_python3-dbg=debian/python3-foo-dbg/
>>> >export PYBUILD_DESTDIR_pypy=debian/pypy-foo/
>>>
>>> I wonder if it wouldn't be possible to calculate default values for all of
>>> these.  E.g. if you had:
>>>
>>> export PYBUILD_NAME=foo
>>>
>>> I think the rest could be pretty much figured out, at least for the common
>>> cases.  Is that worth it?
>>
>>good idea, I'll add --name and PYBUILD_NAME
>
> I'm wondering if this is (supposed to be) working yet (in
> dh-python 1.20130819-1)?
>
> If you look at my nose2 package in svn, I tried to do this:
>
> export PYBUILD_NAME=nose2
>
> but it didn't seem to calculate the other variables automatically, and the
> build did not put things in the right place.  By adding these:
>
> export PYBUILD_DESTDIR_python2=debian/python-nose2
> export PYBUILD_DESTDIR_python3=debian/python3-nose2
>

what caught me off-guard that above paths are relative dh_auto_*
"--sourcedirectory" and are not relative top-level package src dir,
aka $(CURDIR).
I happen to have a "normal" package which has a distutils python app
in a subdir that I need to build.

Is that a bug or a feature? Seems inconsistent from the rest of paths
specified within debhelper.

Regards,

Dmitrijs.


--
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/canbhlujq43dzs3ybtbnpwisvuvvp-lzrp+oyfwqaf0rn42c...@mail.gmail.com



Re: dh-python in unstable

2013-08-28 Thread Barry Warsaw
On Aug 02, 2013, at 05:42 PM, Piotr Ożarowski wrote:

>[Barry Warsaw, 2013-08-02]
>> On Aug 02, 2013, at 03:15 PM, Piotr Ożarowski wrote:
>> >export PYBUILD_DESTDIR_python2=debian/python-foo/
>> >export PYBUILD_DESTDIR_python2-dbg=debian/python-foo-dbg/
>> >export PYBUILD_DESTDIR_python3=debian/python3-foo/
>> >export PYBUILD_DESTDIR_python3-dbg=debian/python3-foo-dbg/
>> >export PYBUILD_DESTDIR_pypy=debian/pypy-foo/
>> 
>> I wonder if it wouldn't be possible to calculate default values for all of
>> these.  E.g. if you had:
>> 
>> export PYBUILD_NAME=foo
>> 
>> I think the rest could be pretty much figured out, at least for the common
>> cases.  Is that worth it?
>
>good idea, I'll add --name and PYBUILD_NAME

I'm wondering if this is (supposed to be) working yet (in
dh-python 1.20130819-1)?

If you look at my nose2 package in svn, I tried to do this:

export PYBUILD_NAME=nose2

but it didn't seem to calculate the other variables automatically, and the
build did not put things in the right place.  By adding these:

export PYBUILD_DESTDIR_python2=debian/python-nose2
export PYBUILD_DESTDIR_python3=debian/python3-nose2

everything worked wonderfully.

All in all though, pybuild is really fantastic.  It will greatly simplify
building Python 2 and 3 versions of most common packages.  Great work!

I've filed a few bugs, and don't have time to contribute to pybuild right now,
but I'll try to find some time to smooth out a few of the rough edges, test
the tox support, and update the documentation and wiki pages.

Cheers,
-Barry


signature.asc
Description: PGP signature


Re: dh-python in unstable

2013-08-15 Thread Piotr Ożarowski
[Vincent Bernat, 2013-08-15]
> And it works with cdbs 0.4.90 released almost 3 years ago. :)

adding Python 3.X support in CDBS didn't require writing anything in
Perl (even if it's "just" ~200 lines) ;-P
-- 
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/20130815213131.gm24...@p1otr.com



Re: dh-python in unstable

2013-08-15 Thread Vincent Bernat
 ❦  2 août 2013 15:15 CEST, Piotr Ożarowski  :

> dh-python is already in unstable \o/

While upgrading some of my packages, I have switched to pybuild and this
works well. In the SVN, there is "cerealizer" and "pycha".

However, about python2/python3 packages, I did also notice that I did
add Python 3 support for netaddr pretty easily in the past with CDBS:

In debian/control:

  X-Python-Version: >= 2.6
  X-Python3-Version: >= 3.2

In debian/rules:

  include /usr/share/cdbs/1/rules/debhelper.mk
  include /usr/share/cdbs/1/class/python-distutils.mk

And it works with cdbs 0.4.90 released almost 3 years ago. :)
-- 
die_if_kernel("Kernel gets FloatingPenguinUnit disabled trap", regs);
2.2.16 /usr/src/linux/arch/sparc/kernel/traps.c


signature.asc
Description: PGP signature


Re: dh-python in unstable

2013-08-05 Thread Scott Kitterman


Stefano Rivera  wrote:
>Hi Dmitrijs (2013.08.05_00:05:50_+0200)
>> pypy published a release with python3 support
>
>I'm not entirely sure how to handle pypy3 yet...
>pypy3 will be able to share /usr/lib/python3/dist-packages, which
>probably means single binary packages for both cpython3 and pypy3. But
>then we lose the ability to express pypy support in dependencies.

Why? Just because they install into the same directory, doesn't mean they 
should be in the same binary. Let's not double the size of binaried for 
everyone. 

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/6f0a8707-cd74-4b5c-8b3c-aa24ce12c...@email.android.com



Re: dh-python in unstable

2013-08-05 Thread Stefano Rivera
Hi Dmitrijs (2013.08.05_00:05:50_+0200)
> pypy published a release with python3 support

I'm not entirely sure how to handle pypy3 yet...
pypy3 will be able to share /usr/lib/python3/dist-packages, which
probably means single binary packages for both cpython3 and pypy3. But
then we lose the ability to express pypy support in dependencies.

> in which case, can pypy2 become an alias for pypy to at least match
> python2, python3 ?

Those aliases certainly sound like something we want.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  H: +27 21 461 1230 C: +27 72 419 8559


-- 
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/20130805170238.ge3...@bach.rivera.co.za



Re: dh-python in unstable

2013-08-04 Thread Dmitrijs Ledkovs
On 2 August 2013 14:15, Piotr Ożarowski  wrote:
> dh-python is already in unstable \o/
>
> To build/install python3-foo or pypy-foo binary packages,
> you can use this in debian/rules:
>
> %:
> dh $@ --with python2,python3,pypy --buildsystem=pybuild
>

Shouldn't it be soon.

> dh $@ --with python2,python3,pypy,pypy3 --buildsystem=pybuild

pypy published a release with python3 support

in which case, can pypy2 become an alias for pypy to at least match
python2, python3 ?

Regards,

Dmitrijs.


--
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/CANBHLUgx6Y8UZ2hORFbqq7pv5GzppSWs0FfHNtEDKu=vzr2...@mail.gmail.com



Re: dh-python in unstable

2013-08-04 Thread Vincent Bernat
 ❦  2 août 2013 16:36 CEST, Piotr Ożarowski  :

>> Worse, it doesn't even try to parse Build-Depends. The relevant logic
>> appears to be:
>> 
>> if [ -f /usr/share/dh-python/dh_python2 ] &&\
>> grep -q dh-python ./debian/control 2>/dev/null
>> then
>>   exec /usr/share/dh-python/dh_python2 $@
>> else
>>   exec /usr/share/python/dh_python2 $@
>> fi
>
> eh, I forgot to replace the one from experimental with a regexp,
> anyway, if you have a better idea, I'm all ears
> (and installing python3 package with `apt-get install python`
> was already proposed :P)

Maybe, rename the helper to `dh_python23`?
-- 
Make input easy to proofread.
- The Elements of Programming Style (Kernighan & Plauger)


signature.asc
Description: PGP signature


Re: dh-python in unstable

2013-08-02 Thread Piotr Ożarowski
[Yaroslav Halchenko, 2013-08-02]
> Do you think it would be feasible to have a backport of dh-python e.g. for
> wheezy with corresponding diverts avoiding conflicts here or indeed python3 
> (>=
> 3.2.3-3~) is required for some functionality (haven't looked inside)?

"3.2.3-3~" is generated by dh_python3 (all packages that need
byte-compilation get it), dh-python itself requires Python >= 3.2 (see
X-Python3-Version in debian/control).

One of the main reasons to create dh-python source package was to make
backports a lot easier. I tested dh-python on Wheezy, I even bacported
pypy and python3.3 to Wheezy to test it even better so bpo upload is
definitely on my TODO list.
-- 
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/20130802212215.ga2...@p1otr.com



Re: dh-python in unstable

2013-08-02 Thread Yaroslav Halchenko
This left me puzzling for a bit:

$> sudo apt-get install dh-python
...
The following packages have unmet dependencies:
 dh-python : Depends: python3 (>= 3.2.3-3~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$> apt-cache policy python3 
python3:
  Installed: 3.2.3-7
  Candidate: 3.3.2-3
  Version table:
 3.3.2-11 0
300 http://debian.lcs.mit.edu/debian/ experimental/main amd64 Packages
 3.3.2-4 0
600 http://debian.lcs.mit.edu/debian/ sid/main amd64 Packages
 3.3.2-3 0
900 http://debian.lcs.mit.edu/debian/ jessie/main amd64 Packages
 *** 3.2.3-7 0
100 /var/lib/dpkg/status
 3.2.3-6 0
100 http://debian.lcs.mit.edu/debian/ wheezy/main amd64 Packages

$> dpkg --compare-versions 3.2.3-3~ lt 3.2.3-7 && echo "yes - yarik is sane" || 
echo "go to the doctor"
yes - yarik is sane

Until I have looked at apt-cache show:

Replaces: python3 (<< 3.3.2-10~)
Depends: python3 (>= 3.2.3-3~)
Breaks: python3 (<< 3.3.2-10~)

Probably it is also worth complaining against apt regarding the message,
but may be Depends here could/should be boosted to the same version of python3?

Do you think it would be feasible to have a backport of dh-python e.g. for
wheezy with corresponding diverts avoiding conflicts here or indeed python3 (>=
3.2.3-3~) is required for some functionality (haven't looked inside)?

On Fri, 02 Aug 2013, Piotr Ożarowski wrote:

> dh-python is already in unstable \o/

> To build/install python3-foo or pypy-foo binary packages,
> you can use this in debian/rules:

>   %:
>   dh $@ --with python2,python3,pypy --buildsystem=pybuild

> or if you don't want to play with .install files:

>   export PYBUILD_DESTDIR_python2=debian/python-foo/
>   export PYBUILD_DESTDIR_python2-dbg=debian/python-foo-dbg/
>   export PYBUILD_DESTDIR_python3=debian/python3-foo/
>   export PYBUILD_DESTDIR_python3-dbg=debian/python3-foo-dbg/
>   export PYBUILD_DESTDIR_pypy=debian/pypy-foo/

>   %:
>   dh $@ --with python2,python3,pypy --buildsystem=pybuild

> See pybuild(1) and dh_pypy(1) for more info.
> Note that adding dh-python to Build-Depends enables multiarch support in 
> dh_python2
-- 
Yaroslav O. Halchenko, Ph.D.
http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org
Senior Research Associate, Psychological and Brain Sciences Dept.
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834   Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik


-- 
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/20130802195759.gd17...@onerussian.com



Re: dh-python in unstable

2013-08-02 Thread Piotr Ożarowski
[Barry Warsaw, 2013-08-02]
> On Aug 02, 2013, at 03:15 PM, Piotr Ożarowski wrote:
> > export PYBUILD_DESTDIR_python2=debian/python-foo/
> > export PYBUILD_DESTDIR_python2-dbg=debian/python-foo-dbg/
> > export PYBUILD_DESTDIR_python3=debian/python3-foo/
> > export PYBUILD_DESTDIR_python3-dbg=debian/python3-foo-dbg/
> > export PYBUILD_DESTDIR_pypy=debian/pypy-foo/
> 
> I wonder if it wouldn't be possible to calculate default values for all of
> these.  E.g. if you had:
> 
> export PYBUILD_NAME=foo
> 
> I think the rest could be pretty much figured out, at least for the common
> cases.  Is that worth it?

good idea, I'll add --name and PYBUILD_NAME

> > %:
> > dh $@ --with python2,python3,pypy --buildsystem=pybuild
> >
> >See pybuild(1) and dh_pypy(1) for more info.
> 
> So we'll finally be able to simplify the recommendations in the style guide to
> not have to add all those overrides?  That would be really fantastic.

yes
-- 
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/20130802154238.gb24...@p1otr.com



Re: dh-python in unstable

2013-08-02 Thread Barry Warsaw
On Aug 02, 2013, at 03:15 PM, Piotr Ożarowski wrote:

>dh-python is already in unstable \o/

Yay!  And thanks!

>To build/install python3-foo or pypy-foo binary packages,
>you can use this in debian/rules:
>
>   %:
>   dh $@ --with python2,python3,pypy --buildsystem=pybuild
>
>or if you don't want to play with .install files:
>
>   export PYBUILD_DESTDIR_python2=debian/python-foo/
>   export PYBUILD_DESTDIR_python2-dbg=debian/python-foo-dbg/
>   export PYBUILD_DESTDIR_python3=debian/python3-foo/
>   export PYBUILD_DESTDIR_python3-dbg=debian/python3-foo-dbg/
>   export PYBUILD_DESTDIR_pypy=debian/pypy-foo/

I wonder if it wouldn't be possible to calculate default values for all of
these.  E.g. if you had:

export PYBUILD_NAME=foo

I think the rest could be pretty much figured out, at least for the common
cases.  Is that worth it?

>   %:
>   dh $@ --with python2,python3,pypy --buildsystem=pybuild
>
>See pybuild(1) and dh_pypy(1) for more info.

So we'll finally be able to simplify the recommendations in the style guide to
not have to add all those overrides?  That would be really fantastic.

(I'm going to try to convert some of my packages over to pybuild and see how
it goes.)

-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/20130802111901.0797f50c@anarchist



Re: dh-python in unstable

2013-08-02 Thread Piotr Ożarowski
[Dmitry Shachnev, 2013-08-02]
> On Fri, Aug 2, 2013 at 6:36 PM, Piotr Ożarowski  wrote:
> > eh, I forgot to replace the one from experimental with a regexp,
> > anyway, if you have a better idea, I'm all ears
> > (and installing python3 package with `apt-get install python`
> > was already proposed :P)
> 
> Why not just drop python-defaults' own dh_python2 and always use
> dh-python's one (like done for dh_python3)?

that would require source uploads in all packages that use dh_python2.
pybuild is so cool that migration will happen anyway :)
-- 
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/20130802150723.ga24...@p1otr.com



Re: dh-python in unstable

2013-08-02 Thread Dmitry Shachnev
On Fri, Aug 2, 2013 at 6:36 PM, Piotr Ożarowski  wrote:
> eh, I forgot to replace the one from experimental with a regexp,
> anyway, if you have a better idea, I'm all ears
> (and installing python3 package with `apt-get install python`
> was already proposed :P)

Why not just drop python-defaults' own dh_python2 and always use
dh-python's one (like done for dh_python3)?

--
Dmitry Shachnev


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



Re: dh-python in unstable

2013-08-02 Thread Piotr Ożarowski
[Jakub Wilk, 2013-08-02]
> * Julien Cristau , 2013-08-02, 15:56:
> >So it will rename stuff or not based on the Build-Depends field?
> >That seems... wrong.
> 
> Worse, it doesn't even try to parse Build-Depends. The relevant logic
> appears to be:
> 
> if [ -f /usr/share/dh-python/dh_python2 ] &&\
> grep -q dh-python ./debian/control 2>/dev/null
> then
>   exec /usr/share/dh-python/dh_python2 $@
> else
>   exec /usr/share/python/dh_python2 $@
> fi

eh, I forgot to replace the one from experimental with a regexp,
anyway, if you have a better idea, I'm all ears
(and installing python3 package with `apt-get install python`
was already proposed :P)
-- 
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/20130802143615.gc22...@p1otr.com



Re: dh-python in unstable

2013-08-02 Thread Julien Cristau
On Fri, Aug  2, 2013 at 16:24:00 +0200, Jakub Wilk wrote:

> * Julien Cristau , 2013-08-02, 15:56:
> >So it will rename stuff or not based on the Build-Depends field?
> >That seems... wrong.
> 
> Worse, it doesn't even try to parse Build-Depends. The relevant
> logic appears to be:
> 
> if [ -f /usr/share/dh-python/dh_python2 ] &&\
> grep -q dh-python ./debian/control 2>/dev/null
> then
>   exec /usr/share/dh-python/dh_python2 $@
> else
>   exec /usr/share/python/dh_python2 $@
> fi
> 
kill me now...

Cheers,
Julien
-- 
Julien Cristau  
Logilab http://www.logilab.fr/
Informatique scientifique & gestion de connaissances


-- 
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/20130802143005.gd15...@crater2.logilab.fr



Re: dh-python in unstable

2013-08-02 Thread Jakub Wilk

* Julien Cristau , 2013-08-02, 15:56:
So it will rename stuff or not based on the Build-Depends field?  That 
seems... wrong.


Worse, it doesn't even try to parse Build-Depends. The relevant logic 
appears to be:


if [ -f /usr/share/dh-python/dh_python2 ] &&\
grep -q dh-python ./debian/control 2>/dev/null
then
  exec /usr/share/dh-python/dh_python2 $@
else
  exec /usr/share/python/dh_python2 $@
fi

--
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/20130802142400.ga3...@jwilk.net



Re: dh-python in unstable

2013-08-02 Thread Piotr Ożarowski
[Julien Cristau, 2013-08-02]
> So it will rename stuff or not based on the Build-Depends field?  That
> seems... wrong.

it will use dh-python's dh_python2 which includes this feature
-- 
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/20130802140209.gb22...@p1otr.com



Re: dh-python in unstable

2013-08-02 Thread Julien Cristau
On Fri, Aug  2, 2013 at 15:39:57 +0200, Piotr Ożarowski wrote:

> [Julien Cristau, 2013-08-02]
> > On Fri, Aug  2, 2013 at 15:15:36 +0200, Piotr Ożarowski wrote:
> > 
> > > Note that adding dh-python to Build-Depends enables multiarch support in 
> > > dh_python2
> > 
> > What does that mean?
> 
> that means dh_python2 will rename
> 
>/usr/lib/python2.7/dist-packages/foo/bar.so
>/usr/lib/python2.7/dist-packages/foo/bar_d.so
> 
> into
> 
>/usr/lib/python2.7/dist-packages/foo/bar..so
>/usr/lib/python2.7/dist-packages/foo/bar._d.so

So it will rename stuff or not based on the Build-Depends field?  That
seems... wrong.

Cheers,
Julien
-- 
Julien Cristau  
Logilab http://www.logilab.fr/
Informatique scientifique & gestion de connaissances


-- 
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/20130802135651.gc15...@crater2.logilab.fr



Re: dh-python in unstable

2013-08-02 Thread Piotr Ożarowski
[Julien Cristau, 2013-08-02]
> On Fri, Aug  2, 2013 at 15:15:36 +0200, Piotr Ożarowski wrote:
> 
> > Note that adding dh-python to Build-Depends enables multiarch support in 
> > dh_python2
> 
> What does that mean?

that means dh_python2 will rename

   /usr/lib/python2.7/dist-packages/foo/bar.so
   /usr/lib/python2.7/dist-packages/foo/bar_d.so

into

   /usr/lib/python2.7/dist-packages/foo/bar..so
   /usr/lib/python2.7/dist-packages/foo/bar._d.so
-- 
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/20130802133957.ga22...@p1otr.com



Re: dh-python in unstable

2013-08-02 Thread Andrey Rahmatullin
On Fri, Aug 02, 2013 at 03:15:36PM +0200, Piotr Ożarowski wrote:
> Note that adding dh-python to Build-Depends enables multiarch support in 
> dh_python2
What does this change exactly?

-- 
WBR, wRAR


--
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/20130802132401.ga28...@belkar.wrar.name



Re: dh-python in unstable

2013-08-02 Thread Julien Cristau
On Fri, Aug  2, 2013 at 15:15:36 +0200, Piotr Ożarowski wrote:

> Note that adding dh-python to Build-Depends enables multiarch support in 
> dh_python2

What does that mean?

Cheers,
Julien
-- 
Julien Cristau  
Logilab http://www.logilab.fr/
Informatique scientifique & gestion de connaissances


-- 
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/20130802132340.gb15...@crater2.logilab.fr



dh-python in unstable

2013-08-02 Thread Piotr Ożarowski
dh-python is already in unstable \o/

To build/install python3-foo or pypy-foo binary packages,
you can use this in debian/rules:

%:
dh $@ --with python2,python3,pypy --buildsystem=pybuild

or if you don't want to play with .install files:

export PYBUILD_DESTDIR_python2=debian/python-foo/
export PYBUILD_DESTDIR_python2-dbg=debian/python-foo-dbg/
export PYBUILD_DESTDIR_python3=debian/python3-foo/
export PYBUILD_DESTDIR_python3-dbg=debian/python3-foo-dbg/
export PYBUILD_DESTDIR_pypy=debian/pypy-foo/

%:
dh $@ --with python2,python3,pypy --buildsystem=pybuild

See pybuild(1) and dh_pypy(1) for more info.
Note that adding dh-python to Build-Depends enables multiarch support in 
dh_python2
-- 
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/20130802131535.ga22...@p1otr.com