LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Create Debian File for Single Python3 Script (http://www.linuxquestions.org/questions/linux-general-1/create-debian-file-for-single-python3-script-4175466415/)

DevynCJohnson 06-17-2013 06: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 06:52 PM

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

DevynCJohnson 06-17-2013 07:03 PM

Clarify
 
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 07: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 07:23 PM

Clarify
 
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 07: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:
http://www.linuxquestions.org/questi...9/#post4762771


[For context it was in my thread about Google Earth here: http://www.linuxquestions.org/questi...76/page3.html]]

DevynCJohnson 06-17-2013 07:37 PM

Fails
 
I get this error when this command is typed:

Code:

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 06: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
Code:

fakeroot dpkg-deb --build PACKAGENAME
.


All times are GMT -5. The time now is 01:56 PM.