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
Related Q & A:
- How do I write a good peer review?Best solution by Quora
- How do I write a search page?Best solution by Stack Overflow
- how can I write this shell script in python?Best solution by Stack Overflow
- How do i turn on add a tab to my tool bar?Best solution by Yahoo! Answers
- How do I write a resume for a part-time job?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.