-   Linux - General (
-   -   Create Debian File for Single Python3 Script (

DevynCJohnson 06-17-2013 05:39 PM

Create Debian File for Single Python3 Script
1 Attachment(s)
I have made a Python3 script that converts degrees to radians. I have been trying to make a Debian file for the script so that other Linux users can install this program on their systems. I included the Debian files that I am dealing with (Attachment 12741). Rename the extension from "txt" to "tar.gz". I have tried dh_make, dpjg --build, and a few other deb builders. Either the commands fail to build the package or they think this is a source Debian package. I want a single binary Debian package for the single Python3 script.

273 06-17-2013 05:52 PM

Oops, sorry, I misread your post. Erm did you try to rename it .deb and just install it?

DevynCJohnson 06-17-2013 06:03 PM

The file that I included is a tar.gz file that I renamed to TXT so that the server would let me post the file. The tar.gz just contains the script, control file, and other needed files for the Debian file. How do I make a Debian file?

273 06-17-2013 06:17 PM

Yes, sorry, I did misread your post. Did you try simply renaming the file with .deb at the end? I know it ought not to work but the file does seem to contain what I would expect to see in a .deb file.

DevynCJohnson 06-17-2013 06:23 PM

I need to make the Deb. How do I make a Debian file? I alreadt made the control file, md5sum, changelog, and the program itself. How do I make a binary deb for a single Python3 script?

273 06-17-2013 06:27 PM

I'm sorry I was looking for the threads.
This is the post I was linked to which helped me change an existing package but ought to help you also:

[For context it was in my thread about Google Earth here:]]

DevynCJohnson 06-17-2013 06:37 PM

I get this error when this command is typed:


collier@Nacho-Laptop:/media/collier/AI/BASH_Enhancements/make_debs$ dpkg-deb -b degrees2radians degrees2radians_0.1_all.deb
dpkg-deb: error: failed to open package info file `degrees2radians/DEBIAN/control' for reading: No such file or directory

The command will not recognize the control file.

DevynCJohnson 06-18-2013 05:38 AM

I figured it out
I have read many documentation pages, but they all proved to be useless to me. I knew how to set up the file and folder layout. I just needed a way to package the files into a deb. I needed this command

fakeroot dpkg-deb --build PACKAGENAME

All times are GMT -5. The time now is 09:54 AM.