"Noel O'Boyle" <[EMAIL PROTECTED]> writes: > It's true (see thread below) - I have been scared away from asking > questions about distutils. But here I go... > > Can someone help me. I think this is quite a common > problem but there doesn't appear to be any obvious answer: > > Can someone suggest how I can write a setup.py for a pure-Python > application that should install on both Linux and Windows? > > The application includes a startup script, a package, and some data > files (or package data) referred to by some modules in the package. > > The Linux version will be distributed as a source distribution. The > Windows version will be distributed as a bdist_wininst, and should > create a shortcut in the Start Menu folder.
In bdist_wininst, you can create shortcuts (and do other fancy stuff) in the postinstall-script. It is badly documented, maybe even fragile, but looking into other setup scripts should get you started. Here are some pointers: PythonCard postinstall script: http://cvs.sourceforge.net/viewcvs.py/pythoncard/PythonCardPrototype/install-pythoncard.py?rev=1.4&view=auto Pywin32 postinstall script: http://cvs.sourceforge.net/viewcvs.py/pywin32/pywin32/pywin32_postinstall.py?rev=1.18&view=auto > An answer will not only receive my heartfelt thanks, but be > posted on the web (http://www.redbrick.dcu.ie/~noel/distutils), so that > others will not have the same problem. A method that will work for both > Python 2.3 and 2.4 would be the most appreciated. You should use the newest Python version (2.4.2) to build the installer. Thomas _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
