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 7927095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:08:27+00:00 2026-06-03T19:08:27+00:00

Distutils offers existing solutions to build a Windows self-extracting EXE. Notably, I can create

  • 0

Distutils offers existing solutions to build a Windows self-extracting EXE. Notably, I can create the package even if I’m on Ubuntu (which is essential given our automated build process).

How do I build an osx installer from an Ubuntu machine?

(This is for python 2.7)

  • 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. Editorial Team
    Editorial Team
    2026-06-03T19:08:28+00:00Added an answer on June 3, 2026 at 7:08 pm

    You could do the following, since OS X has a UNIX foundation. (I’m assuming it also has some standard utilities like uudecode and unzip.);

    • Create a zipfile for your package with the standard Python packaging tools, like distutils.
    • Use uuencode file.zip file.zip >uu.txt to convert this zip-file to text.
    • Create a shell-script.
    • Put the text generated by uuencode as a here-document in that shell-script, that is fed to uudecode, to recreate the zipfile. This should be the second command in the shell-script. The first commands should check for neccesary utilities.
    • Use whatever Python setup tools you have to install the zipfile.
    • Do any post-install stuff you want.
    • Remove the zip-file.

    To install the program, run the shell-script. On UNIX, this script should be run as root. Don’t know how OS X handles that, though. Below is an example (the included zipfile contains two files with only random noise) ;

    #!/bin/sh
    # Install script for foo
    
    # Check for special programs that are used in this script.
    PROGS="uudecode unzip python"
    for P in $PROGS; do
        which $P >/dev/null 2>&1
        if [ $? -ne 0 ]; then
            echo "$(basename $0): The program \"$P\" cannot be found."
            exit 1
        fi
    done
    
    uudecode <<"EOF"
    begin 644 test.zip
    M4$L#!`H``````(<!K$`````````````````$`!P`9F]O+U54"0`#OHZM3ZB.
    MK4]U>`L``03I`P``!.D#``!02P,$"@``````A`&L0$EXM>H``@````(```<`
    M'`!F;V\O8F%R550)``.XCJU/N(ZM3W5X"P`!!.D#```$Z0,``)DCNBVSM81_
    MA%IQ!+LKC\;\19[/E]F!`J2J*2:9B_8#MC^KM*]]9P1]?1Y1@1+/H%Q"'2J'
    M,;$7:C9E+WC]%M(BAUFN]4D\$%F63!^CA8O>'0C(-!YD?$\GQ[;M:?@>=A/[
    M61XK<A/]\.?!0$QX<5]T\9<ZP$;_?PRMV-3O(NK)/<MTI,!RYA&OWRK6<8%4
    M_1!T/+-'7H^V#C[AK)+U?T>UCU."G]D(+JU[8Z#1EI89@'^10B:8.2$$9Q*@
    MY:L4MK'^TVF)A5)9\%"/FF+1T@;]8\,I)$CCHHF#E&,D.GVM1=2N];4J?6WR
    M0+YH]DXZ"UQ$GVA^F(`5L![=/<ROX]9RQCRWJ=?+G4Y>56[H=8:!:GTA_V;V
    M2V$%U5([0D;T19H]P7+^448+^&M3;[/VJDEJ-SU=Q8U=3,IV^<)A>C)]?@XG
    M?-9$B@YZGML`!&`\-CP["]B'FC&K7Z)T6K_&W1K5?M&K8D&^'C^J;H[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````````````$`!@`````````$`#M00``
    M``!F;V\O550%``.^CJU/=7@+``$$Z0,```3I`P``4$L!`AX#"@``````A`&L
    M0$EXM>H``@````(```<`&````````````*2!/@```&9O;R]B87)55`4``[B.
    MK4]U>`L``03I`P``!.D#``!02P$"'@,*``````"&`:Q`Q2@K\@`"`````@``
    M!P`8````````````I(%_`@``9F]O+V)A>E54!0`#O(ZM3W5X"P`!!.D#```$
    :Z0,``%!+!08``````P`#`.0```#`!```````
    `
    end
    EOF
    
    # Unpack your zipfile
    unzip test.zip
    # Go into the created subdirectory and install
    cd foo
    python setup.py install
    # whatever post-install stuff you want goes here...
    cd ..
    rm -rf foo test.zip
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using setup.py / distutils to distribute a package. How can multiple released
can someone point out a simple example of making a Python package using distutils
This doesn't work: python setup.py install --build-base=foo How can I tell distutils where to
I'm trying to build a Python extension and package it up using distutils but
I wanted to learn how to create python packages, so I visited http://docs.python.org/distutils/index.html .
numpy.distutils.system_info.BlasNotFoundError: Blas (http://www.netlib.org/blas/) libraries not found. Directories to search for the libraries can be
Can someone tell me what I'm doing wrong to package this as a module:
I've created package with distutils including package data. When i look in tar.gz of
I am trying to Building C Extensions of Python(3.2) on Windows use distutils. below
i m trying to create windows executable from python program which has GUI .

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.