Home > dh-make-python

dh-make-python

Dh-make-python is a project mainly written in Python, it's free.

helper for creating Debian Package from Python modules

vim:syn=rst:

======================================== dh-make-python

Goal

  • Try to find required metadata from python package for creating a tmeplate of debianlize source in debian_branch
  • Import source code to git for managing upstream code and debianized code
  • Support download python package from PyPI

please read help for more detail:

user@hsot# dh_make_python -h

Depends

Install python-ucltip

PYPI

  1. download source code from http://pypi.python.org/pypi/ucltip/
  2. unpack tgz
  3. ./setup install

Ubuntu Maverick

::

    user@host# add-apt-repository ppa:ossug-hychen/python-ucltip
    user@host# apt-get install python-ucltip

Installation

[note] this is still in develop! please try it without installation

:: user@host# git clone git://github.com/hychen/dh-make-python.git

setup up enviroment

    user@host# export PYTHONPATH=$PWD/dh-make-python:$PYTHONPATH
    user@host# alias dh_make_python=$PWD/dh-make-python/bin/dh_make_python
    # now you can use it
    # dh_make_python -h

Example of creating a new debian package:

::

download last release source from pypi and unpack to current directory

    user@host# dh_make_python start ucltip --pypi
    # correct debian/*
    user@host# vi debian/*
    # build and test package...
    user@host# debuild
    # import new source to debian branch of git,
    # the following command will teach you how to do this
    user@hsot# dh_make_python import