Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python': 0.08; 'runtime': 0.09; 'setup.py': 0.09; 'subject:beginner': 0.09; 'subject:windows': 0.09; 'pm,': 0.10; 'wrote:': 0.14; 'bundles': 0.16; 'from:name:mark hammond': 0.16; 'reply-to:addr:mhammond': 0.16; 'reply-to:addr:skippinet.com.au': 0.16; 'smtplib': 0.16; 'to:addr:comp.lang.python': 0.16; 'dependent': 0.16; 'cc:addr :python-list': 0.17; 'convert': 0.19; 'header:In-Reply-To:1': 0.21; 'wrote': 0.22; 'subject:question': 0.23; 'cc:no real name:2**0': 0.23; '(where': 0.23; 'etc,': 0.23; 'modules': 0.26; 'windows': 0.26; 'script': 0.27; 'tried': 0.27; 'skip:p 30': 0.28; 'import': 0.29; 'all,': 0.30; 'cc:addr:python.org': 0.30; 'cc:addr:gmail.com': 0.30; 'cmd': 0.30; 'installer': 0.30; 'received:209.85.210.46': 0.30; 'received:mail- pz0-f46.google.com': 0.30; 'error': 0.33; 'question': 0.34; 'skip:# 10': 0.34; 'header:User-Agent:1': 0.35; 'skip:" 10': 0.35; 'cc:2**1': 0.35; 'message-id:@gmail.com': 0.36; 'probably': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.37; 'url:docs': 0.37; 'think': 0.38; 'url:python': 0.38; 'url:org': 0.38; 'run': 0.38; 'subject:: ': 0.38; 'some': 0.38; 'received:192': 0.38; 'received:209': 0.39; 'getting': 0.40; 'full': 0.63; 'to:addr:googlegroups.com': 0.63; 'header:Reply-To:1': 0.72; 'reply-to:no real name:2**0': 0.72 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:reply-to:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=lCNJV4i+6mObewMomTni//JO3elxGLZaMSEaHKS3Csw=; b=sqKCKR3QPrS2xkccl3W2ibtQoDIfIXhAb876QiTvCxgso2P3QT3clIaAkd2Z8vtCCX ecpMXw7eveCqnOAdG6bjUdQeZqVKjjPaQ/4NsZb+KoYlbBQwTVz1qm6Y6v2I41XhCplM eVbGOcH9E3ThZSSpyeDYyp5rLzXVwlQCwGIJQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=dxk8IpexYChIL74ab2wMGnAuAGBHqSORrK0zBtUxdUhGffWaPzucbHcT65g9iM2LOW wnP2Pzt3uqnwxZOIGS6QLiP5R3YUEKwjhger8Ir4mcEYNrSnVYwxGUlMXBdtB0qzuQFC srMJ68+tuP1QFVPy2pHMCigm3jrSbqWCxOm2Q= Date: Sun, 05 Jun 2011 23:28:59 +1000 From: Mark Hammond User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110528 Thunderbird/5.0b1 MIME-Version: 1.0 To: comp.lang.python@googlegroups.com Subject: Re: Distutils beginner question - windows References: <44bc9107-acee-4ab0-b0ca-adb3b9a7a582@glegroupsg2000goo.googlegroups.com> In-Reply-To: <44bc9107-acee-4ab0-b0ca-adb3b9a7a582@glegroupsg2000goo.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Seb S , python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: mhammond@skippinet.com.au List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1307280541 news.xs4all.nl 49048 [::ffff:82.94.164.166]:60100 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7049 On 3/06/2011 6:57 PM, Seb S wrote: > > Hi all, > > Just a quick question , I have a simple script I want to convert into a windows installer and give to some friends. > I had a look at http://docs.python.org/distutils/introduction.html and wrote this setup script: > > > #!/usr/bin/env python > > from distutils.core import setup > > setup(name="C:\data\Sendmailmsg.py", > version='1.0', > description='Python Distribution Utilities', > author='Sebas929 ', > author_email=' ', > url=' ', > py_modules=['urllib','smtplib'], > ) > > > I tried to run this - "C:\Data\Setup.py" bdist_wininst - in a cmd prompt. > C:\Data\ contains my script Sendmailmsg.py and Setup.py > I am getting the error : I think you misunderstand what bdist_wininst is for and probably want py2exe (where you just tell it you want to package Sendmailmsg.py and it finds all other dependent modules like smtplib etc, bundles them up with a full python runtime and rolls it into a nice executable) HTH, Mark