<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: statically linking the entire runtime (HPUX Python2.1)</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>hello,</FONT>
</P>

<P><FONT SIZE=2>forgive me for ignorance, but I didnt know of creating a standalone exe from a </FONT>
<BR><FONT SIZE=2>python prog on unix, I went all the way to rewrite a python code to C prog cause, </FONT>
<BR><FONT SIZE=2>I needed to have a binary only. I guess, FAQ doesn't mention this. Utils I guess</FONT>
<BR><FONT SIZE=2>do something similar for win platforms like py2exe which I use.</FONT>
</P>

<P><FONT SIZE=2>Can a easy to follow procedure be posted by the knowledgable for those not very </FONT>
<BR><FONT SIZE=2>proficient in handling C source compilations inolving make and whatnot.</FONT>
</P>

<P><FONT SIZE=2>/prasad</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Andrew MacIntyre [<A HREF="mailto:andymac@bullseye.apana.org.au">mailto:andymac@bullseye.apana.org.au</A>]</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, June 13, 2001 5:30 PM</FONT>
<BR><FONT SIZE=2>To: python-list@python.org</FONT>
<BR><FONT SIZE=2>Subject: Re: statically linking the entire runtime (HPUX Python2.1)</FONT>
</P>
<BR>

<P><FONT SIZE=2>On 12 Jun 2001, cmkl wrote:</FONT>
</P>

<P><FONT SIZE=2>> On HP-UX I'm trying to build python2.1 without building the C-modules found</FONT>
<BR><FONT SIZE=2>> in Modules/ as shared libraries. With the Version 2.0 this was the default.</FONT>
<BR><FONT SIZE=2>> I played around with configure, setup.py and Modules/Setup but I always</FONT>
<BR><FONT SIZE=2>> end up with a binary depending on various shared libraries.</FONT>
<BR><FONT SIZE=2>> I need this, bacause I want to freeze my pythons scripts as a single binary.</FONT>
<BR><FONT SIZE=2>> Distribution is much easier this way.</FONT>
<BR><FONT SIZE=2>> What is the trick to do that?</FONT>
</P>

<P><FONT SIZE=2>I don't know specifically about HP-UX, but in general:</FONT>
<BR><FONT SIZE=2>1: uncomment the modules you want in Modules/Setup</FONT>
<BR><FONT SIZE=2>2: comment any "*shared*" terms in Modules/Setup</FONT>
<BR><FONT SIZE=2>3: don't bother with setup.py, as its only for dynload modules</FONT>
</P>

<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>Andrew I MacIntyre                     "These thoughts are mine alone..."</FONT>
<BR><FONT SIZE=2>E-mail: andrew.macintyre@aba.gov.au    (work) | Snail: PO Box 370</FONT>
<BR><FONT SIZE=2>        andymac@bullseye.apana.org.au  (play) |        Belconnen  ACT  2616</FONT>
<BR><FONT SIZE=2>        andymac@pcug.org.au           (play2) |        Australia</FONT>
</P>
<BR>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2><A HREF="http://mail.python.org/mailman/listinfo/python-list" TARGET="_blank">http://mail.python.org/mailman/listinfo/python-list</A></FONT>
</P>
<BR>

<P><B><FONT SIZE=2>.. </FONT></B>
</P>

</BODY>
</HTML>