Empaquetado deb rápido y sucio de aplicaciones python 16


Toca mini-receta basado en el artículo de David en la web de crysol.

  1. Necesitamos un fichero setup.py. Si el software no lo trae deberemos crearlo nosotros.
  2. creamos el dir debian: mkdir debian
  3. Creamos el fichero debian/control:

  4. Source: hola-pythoneros
    Section: utils
    Priority: optional
    Maintainer: Juan Nadie <juan.nadie@loquesea.es>
    Build-Depends: debhelper (>= 5.0.38)
    Build-Depends-Indep: cdbs (>= 0.4.43), python-all-dev (>= 2.3.5-11), python-central (>= 0.5.6)
    Standards-Version: 3.7.2
    XS-Python-Version: all

    Package: hola-pythoneros
    Architecture: all
    Depends: ${python:Depends}
    XB-Python-Version: ${python:Versions}
    Description: Ejemplo básico de script Python empaquetado en Debian GNU/Linux
    Un script "hola mundo" que sirve únicamente para explicar cómo se
    empaquetan scripts Python en GNU/Linux de forma adecuada.

  5. Creamos el rules (ojo, tiene que ser ejecutable chmod +x debian/rules):

  6. #!/usr/bin/make -f


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

  7. Creamos el debian/changelog : dch --create

Con esto tenemos lo ultrabásico para poder compilar el paquete deb: dpkg-buildpackage

Es una manera sucia de empaquetar algo (es más una nota mental para mi que un howto) y para que el paquete sea medio decente hay que hacer muchas más cosas 🙂 Leeros el articulo de David que es más completo.

Dejar un Comentario

Tu dirección de correo electrónico no será publicada.

16 Comentarios en “Empaquetado deb rápido y sucio de aplicaciones python

  • adidas neo

    Thank you a lot for providing individuals with an exceptionally remarkable opportunity to read in detail from this site. It can be so ideal and also stuffed with amusement for me and my office colleagues to visit your web site really 3 times in 7 days to find out the newest stuff you have got. And of course, I’m so actually contented considering the attractive thoughts you give. Some 2 facts in this post are unquestionably the finest I have had.

  • michael kors handbags

    I would like to express some appreciation to you for bailing me out of such a matter. Because of surfing throughout the world-wide-web and meeting suggestions which were not pleasant, I assumed my life was done. Being alive devoid of the solutions to the issues you have solved as a result of your entire post is a critical case, as well as those which might have badly affected my entire career if I hadn’t come across your website. Your own competence and kindness in dealing with every item was valuable. I don’t know what I would’ve done if I hadn’t discovered such a step like this. I can at this time look ahead to my future. Thanks very much for this expert and effective guide. I won’t hesitate to endorse your web sites to anybody who desires recommendations on this situation.

  • adidas tubular

    I’m just writing to let you understand what a excellent experience my wife’s princess developed viewing your web site. She learned some issues, including what it is like to possess an incredible helping nature to let other individuals without hassle completely grasp chosen complex topics. You undoubtedly exceeded my expectations. I appreciate you for giving these good, healthy, educational and in addition easy thoughts on that topic to Lizeth.

  • cheap jordans

    I am only commenting to let you know of the beneficial experience my wife’s girl experienced viewing your site. She realized some pieces, with the inclusion of what it is like to have a marvelous teaching mood to have certain people really easily fully grasp specified tricky topics. You truly exceeded visitors’ expected results. Thanks for coming up with such necessary, healthy, informative and fun thoughts on that topic to Tanya.

  • nike polo shirts

    My husband and i ended up being quite fulfilled Peter could round up his survey using the precious recommendations he grabbed through the site. It is now and again perplexing just to continually be giving freely secrets that other people have been selling. And we all keep in mind we’ve got you to thank for that. All the explanations you made, the simple blog menu, the relationships you will make it easier to engender – it is everything incredible, and it is making our son in addition to us believe that that topic is cool, which is pretty vital. Many thanks for all!

  • louboutin shoes uk

    I happen to be commenting to make you understand what a notable experience my wife’s daughter had studying the blog. She mastered a wide variety of details, with the inclusion of what it is like to have an amazing coaching mood to let certain people completely learn specified multifaceted things. You actually surpassed visitors’ desires. I appreciate you for offering such powerful, healthy, explanatory and as well as cool tips about the topic to Sandra.

  • true religion jeans

    I am writing to let you know what a brilliant encounter my cousin’s daughter developed visiting your blog. She learned a lot of things, not to mention what it’s like to have an ideal teaching nature to make folks smoothly gain knowledge of specified complicated subject matter. You truly did more than our own desires. Thanks for coming up with these powerful, trustworthy, revealing as well as unique tips about your topic to Ethel.

  • skechers shoes

    Thank you for all of your effort on this web page. My mother loves conducting investigation and it’s really obvious why. We all hear all about the compelling ways you convey reliable secrets by means of your web site and as well as increase contribution from others on that issue so our favorite child is without a doubt being taught so much. Take pleasure in the rest of the new year. You are performing a stunning job.

  • links of london

    I enjoy you because of every one of your work on this website. My daughter takes pleasure in managing investigation and it’s really obvious why. My partner and i know all of the lively tactic you offer functional techniques via the web site and as well increase contribution from other people about this article while our princess is discovering a whole lot. Take advantage of the rest of the new year. You are always performing a brilliant job.

  • adidas nmd

    I needed to draft you this little word so as to thank you so much once again relating to the breathtaking techniques you’ve shared on this page. It is simply surprisingly open-handed with you to deliver unreservedly all many people might have supplied as an e book to end up making some profit for their own end, mostly given that you might well have done it if you considered necessary. Those strategies likewise served as the fantastic way to recognize that other people have the identical dream really like my own to find out a good deal more in respect of this condition. I am sure there are millions of more enjoyable opportunities ahead for individuals that take a look at your site.

  • michael kors outlet

    My spouse and i felt very fortunate that John could finish off his web research through the entire precious recommendations he grabbed out of the weblog. It’s not at all simplistic to simply find yourself releasing information some people might have been selling. And now we remember we need the blog owner to be grateful to for this. The entire illustrations you made, the simple website navigation, the friendships you assist to instill – it’s got mostly unbelievable, and it’s really letting our son and our family feel that the subject matter is brilliant, and that’s really mandatory. Thanks for the whole thing!

  • michael kors outlet store

    A lot of thanks for all your effort on this website. Kim really loves going through research and it is simple to grasp why. Many of us know all about the dynamic means you give great guidelines by means of your website and as well as invigorate response from some others on that area of interest so our princess is certainly becoming educated so much. Take pleasure in the remaining portion of the new year. You’re the one performing a very good job.

  • skechers shoes for men

    I happen to be writing to make you understand what a superb experience my friend’s child developed reading through your web site. She realized a wide variety of details, which include what it is like to have an excellent coaching nature to have a number of people smoothly thoroughly grasp some advanced matters. You undoubtedly exceeded people’s expectations. I appreciate you for showing such effective, dependable, explanatory and in addition fun guidance on this topic to Mary.

  • adidas yeezy uk

    I together with my guys have already been looking at the nice things found on the website and so all of the sudden came up with a horrible suspicion I had not expressed respect to the website owner for them. The women happened to be for this reason happy to see all of them and already have simply been loving them. We appreciate you turning out to be simply thoughtful and for getting this form of great issues most people are really wanting to know about. My personal sincere regret for not expressing gratitude to sooner.

  • huaraches shoes

    My spouse and i ended up being absolutely ecstatic Edward managed to round up his analysis out of the ideas he received through the web site. It is now and again perplexing to just happen to be offering procedures that many men and women might have been trying to sell. And we all grasp we have the writer to appreciate because of that. The illustrations you have made, the simple site menu, the relationships you can help to foster – it’s got mostly great, and it’s facilitating our son in addition to our family know that that situation is interesting, which is very pressing. Thank you for the whole lot!