Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 38669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:44:39+00:00 2026-05-10T14:44:39+00:00

I wrote a quick program in python to add a gtk GUI to a

  • 0

I wrote a quick program in python to add a gtk GUI to a cli program. I was wondering how I can create an installer using distutils. Since it’s just a GUI frontend for a command line app it only works in *nix anyway so I’m not worried about it being cross platform.

my main goal is to create a .deb package for debian/ubuntu users, but I don’t understand make/configure files. I’ve primarily been a web developer up until now.

edit: Does anyone know of a project that uses distutils so I could see it in action and, you know, actually try building it?

Here are a few useful links

  • Ubuntu Python Packaging Guide

    This Guide is very helpful. I don’t know how I missed it during my initial wave of gooling. It even walks you through packaging up an existing python application

  • The Ubuntu MOTU Project

    This is the official package maintaining project at ubuntu. Anyone can join, and there are lots of tutorials and info about creating packages, of all types, which include the above ‘python packaging guide’.

  • ‘Python distutils to deb?’ – Ars Technica Forum discussion

    According to this conversation, you can’t just use distutils. It doesn’t follow the debian packaging format (or something like that). I guess that’s why you need dh_make as seen in the Ubuntu Packaging guide

  • ‘A bdist_deb command for distutils

    This one has some interesting discussion (it’s also how I found the ubuntu guide) about concatenating a zip-file and a shell script to create some kind of universal executable (anything with python and bash that is). weird. Let me know if anyone finds more info on this practice because I’ve never heard of it.

  • Description of the deb format and how distutils fit in – python mailing list

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:44:40+00:00Added an answer on May 10, 2026 at 2:44 pm

    See the distutils simple example. That’s basically what it is like, except real install scripts usually contain a bit more information. I have not seen any that are fundamentally more complicated, though. In essence, you just give it a list of what needs to be installed. Sometimes you need to give it some mapping dicts since the source and installed trees might not be the same.

    Here is a real-life (anonymized) example:

    #!/usr/bin/python   from distutils.core import setup   setup (name = 'Initech Package 3',            description = 'Services and libraries ABC, DEF',            author = 'That Guy, Initech Ltd',            author_email = 'that.guy@initech.com',            version = '1.0.5',            package_dir = {'Package3' : 'site-packages/Package3'},            packages = ['Package3', 'Package3.Queries'],            data_files = [                         ('/etc/Package3', ['etc/Package3/ExternalResources.conf'])            ]) 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer As others have mentioned, you have a specificity problem. When… May 11, 2026 at 11:40 am
  • added an answer You're looking at 12 bytes per structure, so passing it… May 11, 2026 at 11:40 am
  • added an answer Try this: vector<Type>::iterator nth = v.begin() + index; May 11, 2026 at 11:40 am

Related Questions

I wrote a quick program in python to add a gtk GUI to a
I wrote a quick and dirty wrapper around svn.exe to retrieve some content and
Hey guys i wrote a quick test. I want delete to call deleteMe which
In my classes I often write a quick operator!= by returning !(*this == rhs)
I'm trying to write a quick little java application to read the contents of
I wrote a simple batch file as a PowerShell script, and I am getting
I wrote a windows service using VB that read some legacy data from Visual
I wrote a component that displays a filename, a thumbnail and has a button
I wrote a simple tool to generate a DBUnit XML dataset using queries that
I wrote a simple Windows Forms program in C#. I want to be able

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.