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
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to