Re: Building a python application

2013-04-02 Thread Niranjan Rao

On 04/02/2013 09:00 AM, Barry Warsaw wrote:

On Mar 23, 2013, at 07:14 PM, Niranjan Rao wrote:


My python code depends upon some python libraries, some of which are part
ubuntu repository and I could install them using apt-get. There are other
libraries which are not part of the repository and had to install using
python PIP.  So far I have been very careful not to depend upon something
which has non open source license, so all the libraries are open source
libraries. Additionally I have dependency on Webkit 3 and GTK. Not sure if I
need to explicitly declare these dependencies while creating package

robru described accurately that in order to get your application into Ubuntu
(or even better, Debian) all your dependencies would also need to be
packaged.  While this might be time-consuming, fortunately, the process is
fairly easy (for distutils-based packages) and well documented.  E.g.

http://wiki.debian.org/Python/LibraryStyleGuide

The Debian Python teams are also very helpful if you get stuck.

Cheers,
-barry



Thank you Barry. Will look into it.

Regards,

Niranjan
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Building a python application

2013-04-02 Thread Barry Warsaw
On Mar 23, 2013, at 07:14 PM, Niranjan Rao wrote:

>My python code depends upon some python libraries, some of which are part
>ubuntu repository and I could install them using apt-get. There are other
>libraries which are not part of the repository and had to install using
>python PIP.  So far I have been very careful not to depend upon something
>which has non open source license, so all the libraries are open source
>libraries. Additionally I have dependency on Webkit 3 and GTK. Not sure if I
>need to explicitly declare these dependencies while creating package

robru described accurately that in order to get your application into Ubuntu
(or even better, Debian) all your dependencies would also need to be
packaged.  While this might be time-consuming, fortunately, the process is
fairly easy (for distutils-based packages) and well documented.  E.g.

http://wiki.debian.org/Python/LibraryStyleGuide

The Debian Python teams are also very helpful if you get stuck.

Cheers,
-barry


signature.asc
Description: PGP signature
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Building a python application

2013-03-23 Thread Robert Bruce Park
On Sat, Mar 23, 2013 at 07:14:39PM -0700, Niranjan Rao wrote:
> My python code depends upon some python libraries, some of which are
> part ubuntu repository and I could install them using apt-get. There
> are other libraries which are not part of the repository and had to
> install using python PIP.

Well, if you want to create a .deb package to distribute your library,
you are going to also need to create a .deb package for the libraries
you are depending on, because apt has no way of depending on packages
from PIP. So if you only package your own app, nobody will be able to
install it because apt won't know how to install the dependencies.

> Not sure if I need to explicitly declare these
> dependencies while creating package

Yes, you will need to explicitly declare all your dependencies when
you are creating the package, otherwise apt won't ensure that all your
dependencies are present on the system, and then the situation you'll
run into is that people will install your app, and it won't work
because it's dependencies are missing, but the system won't realize
that anything is missing.

>  I am struggling with how to package all this. All the tutorial I
> came across did not cover this point. If someone can point me to
> right documents for creating PPA for python applications, especially
> covering the parts about dependencies, it will be great.

So a good start would be here:

http://wiki.debian.org/Courses2005/BuildingWithoutHelper#Creating_Debian_specific_files

That is a good overview of the different files needed in the debian/
directory and what their contents should look like.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Building a python application

2013-03-23 Thread Niranjan Rao

Greetings,

I am trying very hard to find the right platform  to get answers for 
some my questions. Apologize in advance if this is not appropriate 
forum. Tried posting questions at stackoverflow and ubuntu 
packaging/compiling programs forum with no luck.


I am building a open source python notes application and would 
eventually like to make it available in ubuntu software repository if at 
all possible when its ready. I know there are many such applications but 
they were lacking something. This application uses Webkit as rendering 
engine and markdown templates for writing notes.  I am still working on 
the application to follow ubuntu application guidelines and make it as 
complete as possible. If you are curious, application is available at github


My python code depends upon some python libraries, some of which are 
part ubuntu repository and I could install them using apt-get. There are 
other libraries which are not part of the repository and had to install 
using python PIP.  So far I have been very careful not to depend upon 
something which has non open source license, so all the libraries are 
open source libraries. Additionally I have dependency on Webkit 3 and 
GTK. Not sure if I need to explicitly declare these dependencies while 
creating package


 I am struggling with how to package all this. All the tutorial I came 
across did not cover this point. If someone can point me to right 
documents for creating PPA for python applications, especially covering 
the parts about dependencies, it will be great.


Thanks,

Niranjan

--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss