January 26th, 2005, 03:13 PM
Hey I have searched this on google so don't come with that.
But I really don't understand what the hell the installing script is.
Please could u post one for me!
Thanks for any construktive responses.
January 26th, 2005, 04:40 PM
Monkey, could you provide us with some more detail as to what exactly you want? I'm sure I'm not the only one who doesn't have much of a clue here .
Anyway, if your talking about installing modules via a setup.py file then you should check out the "Installing Python Modules" section of Pythons docs. You may also be interested in "Distributing Python modules".
Just a guess,
January 26th, 2005, 04:48 PM
Ya. I don't have a clue either. Do you mean like where you can open something and install your program onto a users computer? I'm still not sure what you were asking for, but maybe this link will help. Installing Python Modules
January 27th, 2005, 03:06 PM
Well okay I want to install a program that I made meaning modules using windows installer for those people with windows, and the Distutils "I don't get it". Because the way I do it at the moment is really primitive. I copy and paste it on then just run it! So how would I make a connection to the registery and links to desktop and all that.Like a big game or something.
Don't be that harsh netytan Hey happy news I am changing to Linux totaly I am getting pissed at M$.
Okay well I have looked at this:
But the problem is when I insert the name and py_modules different name at the top then there is an error. There is not file created!
I tried with making a file called foo.py but it still does not work.
This is how it looks:
from distutils.core import setup
And I made a file called foo.py in teh same directory but it said it does not have function or nothing is run.
January 27th, 2005, 03:49 PM
The last line makes it seem like foo.py is empty, is this the case? Give me a few to make a working example . You want to install a module with Distutils right, not a Python program?
January 27th, 2005, 04:09 PM
It is one foo.py file and trhe inside is " print "Foo" "
Originally Posted by netytan
January 27th, 2005, 04:32 PM
Ok heres the sample. With a simple "foo" module, ready for distribution. It has one function called printHello(), use it wisely . Download the attached zip file and open the files setup.py and foo.py to see how these work.
Inside the zip file you'll also find a ./dist directory and the tar.gz archive, created by running the "python setup.py sdist" command:
Not surprisingly, creating a Windows installer is just as easy! All you need to do is replace sdist with bdist_wininst, so the full command becomes "python setup.py bdist_wininst". This is described in full at:
Hope this helps,
January 27th, 2005, 04:37 PM
February 2nd, 2005, 08:09 PM
how about if i want to install a program which written in Python (note:1) and use MySQL serve as the DBMS ?
Note:1 -- A Python program that get staff details (name, ic, age, etc) from user input (keyboard) & save those info into the database (MySQL)
February 3rd, 2005, 12:56 PM
I am thinking monkey is wanting to create an installer that installs his 'program' to any pc using an installer.
For ease of use , I have been using py2exe to create an exe, and then using NSIS(Nullsoft Scriptable Install System-winamp guys-free) to create a pretty windows installer.
NSIS lets you do registry stuff,create uninstall,create icons, etc., and uses a pretty simple scripting language to do it.
Monkey--Check out the sticky's at the top of the forum for py2exe info, and check http://nsis.sourceforge.net/ for the NSIS installer.