LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-17-2013, 05:39 PM   #1
DevynCJohnson
LQ Newbie
 
Registered: May 2013
Distribution: Ubuntu
Posts: 9

Rep: Reputation: 0
Question Create Debian File for Single Python3 Script


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 (degrees2radians-0.1.txt). 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.
 
Old 06-17-2013, 05:52 PM   #2
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,411

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

Last edited by 273; 06-17-2013 at 05:54 PM.
 
Old 06-17-2013, 06:03 PM   #3
DevynCJohnson
LQ Newbie
 
Registered: May 2013
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: 0
Exclamation 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?
 
Old 06-17-2013, 06:17 PM   #4
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,411

Rep: Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794
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.
 
Old 06-17-2013, 06:23 PM   #5
DevynCJohnson
LQ Newbie
 
Registered: May 2013
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: 0
Exclamation 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?
 
Old 06-17-2013, 06:27 PM   #6
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,411

Rep: Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794
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]]

Last edited by 273; 06-17-2013 at 06:28 PM.
 
Old 06-17-2013, 06:37 PM   #7
DevynCJohnson
LQ Newbie
 
Registered: May 2013
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: 0
Question 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.
 
Old 06-18-2013, 05:38 AM   #8
DevynCJohnson
LQ Newbie
 
Registered: May 2013
Distribution: Ubuntu
Posts: 9

Original Poster
Rep: Reputation: 0
Lightbulb 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
.
 
  


Reply

Tags
debian, development, packaging


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] pass a file name with space as single argument to script sumeet inani Linux - Newbie 5 08-26-2012 04:45 AM
[SOLVED] add 250 single column files to create one file wilelucho Programming 10 06-27-2012 02:05 PM
[SOLVED] How to create a single file with size of 50 GB sanjay87 Linux - Server 2 04-18-2012 02:29 PM
Create a script that asks the user for a file and then appends the date to the file larry5757 Linux - Newbie 2 12-04-2009 06:33 AM
Create a script to display file name, Inode, and size of any file. Has to be a script JaxsunApex Linux - Newbie 7 01-29-2007 08:15 PM


All times are GMT -5. The time now is 10:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration