Unix tools: what if a file is named minus something?

How do I write and distribute a Unix command line tool in Python?

  • I know how to write a python program which takes command line arguments and does something with them. And I know how to use python setup tools to create a python installer. But are there any good tutorials that will take me (without using setup tools) through : a) putting my program in the right place in a Unix file system so that everyone can use it, b) building a tar file that uses "make" to install it, c) building a debian or ubuntu package including dependencies, d) whether I use b or c, ensures the right version of python is available and visible?

  • Answer:

    If you're going the .deb route, you should look for a tutorial on how to create a .deb. Dependency checks are handled by the package/package manager. You just need to use dpkg-depcheck. In terms of a path where all users can access the script, /bin is a common location or /usr/bin. A good place to start would be a dep tutorial: http://www.debian-administration.org/articles/336

Akbar S. Ahmed at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.