Help!

from python egg to debian package : a good example ?

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Python RSS
Next:  Accepted biblatex 0.8h-1 (source all)  
Author Message
Jérémy Lal
External


Since: Jul 29, 2009
Posts: 4



PostPosted: Tue Aug 18, 2009 3:10 pm    Post subject: from python egg to debian package : a good example ?
Archived from groups: linux>debian>maint>python (more info?)

Hi,
i'm willing to package a python module (orbited,
see http://orbited.org).
I suppose there's a clever way when the said
module is a python egg.
However i don't find any coherent documentation on this,
and how python-distutils, dh_pycentral, dh_pysupport
provides coherent python module packaging.
I'd appreciate any documentation, or better the name
of a source package that shows clearly how to do.
I tried reading python-fuse/debian/rules... not learned much from it Smile

Regards,
Jérémy Lal




--
To UNSUBSCRIBE, email to debian-python-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Piotr Ożarowski
External


Since: Apr 15, 2009
Posts: 12



PostPosted: Thu Aug 20, 2009 6:10 am    Post subject: Re: from python egg to debian package : a good example ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

[Ben Finney, 2009-08-20]
> Piotr Ożarowski <piotr.RemoveThis@debian.org> writes:
>
> > [Jérémy Lal, 2009-08-18]
> > > i'm willing to package a python module (orbited, see
> > > http://orbited.org). I suppose there's a clever way when the said
> > > module is a python egg.
> >
> > There's tar.gz on PyPi, no need to use Egg.
>
> This is true for the 'orbited' distribution, but only because the
> distribution owner has uploaded a tarball.

Can you point me to a project that is providing eggs only?

anyway, here's what I'd do in such case:
* check if upstream is using VCS (tarball can be created from files in
the repo), or
* ask upstream to point me to the sources, or
* unzip .egg, add setup.py, create tarball, send setup.py upstream

--
-=[ Piotr Ożarowski ]=-
-=[ http://www.ozarowski.pl ]=-


--
To UNSUBSCRIBE, email to debian-python-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Jérémy Lal
External


Since: Jul 29, 2009
Posts: 4



PostPosted: Thu Aug 20, 2009 7:10 am    Post subject: Re: from python egg to debian package : a good example ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 20/08/2009 11:24, Piotr Ożarowski wrote:
> [Ben Finney, 2009-08-20]
>> Piotr Ożarowski<piotr.DeleteThis@debian.org> writes:
>>
>>> [Jérémy Lal, 2009-08-18]
>>>> i'm willing to package a python module (orbited, see
>>>> http://orbited.org). I suppose there's a clever way when the said
>>>> module is a python egg.
>>>
>>> There's tar.gz on PyPi, no need to use Egg.
>>
>> This is true for the ‘orbited’ distribution, but only because the
>> distribution owner has uploaded a tarball.
>
> Can you point me to a project that is providing eggs only?
>
> anyway, here's what I'd do in such case:
> * check if upstream is using VCS (tarball can be created from files in
> the repo), or
> * ask upstream to point me to the sources, or
> * unzip .egg, add setup.py, create tarball, send setup.py upstream
>
I was confused and made an omelet with the egg Smile
Indeed the tarball contains setup.py, and dh_pycentral did the job.
Regards,
Jérémy.




--
To UNSUBSCRIBE, email to debian-python-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Ben Finney
External


Since: May 12, 2005
Posts: 51



PostPosted: Thu Aug 20, 2009 7:10 am    Post subject: Re: from python egg to debian package : a good example ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Piotr Ożarowski <piotr DeleteThis @debian.org> writes:

> Can you point me to a project that is providing eggs only?

For a while my own did, until I realised that tarballs were a better
option. I've also seen distribution entries that have no files at all,
just meta-data.

My point is that it needs to be realised that *if* a distribution isn't
providing tarballs, that's not because PyPI has failed; it makes no
guarantee that *any* distribution files are downloadable. Therefore one
should not rely on them being available.

--
\ "The lift is being fixed for the day. During that time we |
`\ regret that you will be unbearable." —hotel, Bucharest |
_o__) |
Ben Finney


--
To UNSUBSCRIBE, email to debian-python-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
Ben Finney
External


Since: May 12, 2005
Posts: 51



PostPosted: Thu Aug 20, 2009 8:10 am    Post subject: Re: from python egg to debian package : a good example ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jérémy Lal <jerry.TakeThisOut@edagames.com> writes:

> Indeed the tarball contains setup.py, and dh_pycentral did the job.

Note again, though, that new packaging work shouldn't rely on
'python-central'; it has many problems that are tedious to recover from.
Instead, use 'python-support'.

--
\ "About four years ago, I was — no, it was yesterday." —Steven |
`\ Wright |
_o__) |
Ben Finney


--
To UNSUBSCRIBE, email to debian-python-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Jérémy Lal
External


Since: Jul 29, 2009
Posts: 4



PostPosted: Thu Aug 20, 2009 8:10 am    Post subject: Re: from python egg to debian package : a good example ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 20/08/2009 12:57, Ben Finney wrote:
> Jérémy Lal<jerry DeleteThis @edagames.com> writes:
>
>> Indeed the tarball contains setup.py, and dh_pycentral did the job.
>
> Note again, though, that new packaging work shouldn't rely on
> ‘python-central’; it has many problems that are tedious to recover from.
> Instead, use ‘python-support’.
>

Thanks, i just discovered my questions were already answered at
http://wiki.debian.org/DebianPythonFAQ



--
To UNSUBSCRIBE, email to debian-python-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Python All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum