Re: [Pyobjc-dev] Testsuite adventures
Brought to you by:
ronaldoussoren
From: Dinu G. <gh...@da...> - 2003-05-18 12:22:29
|
Ronald Oussoren: > There are no extensions because these are programs. I really hate it > when people ship executables with an extension ;-). My first thought > when seeing an executable with an extension (be it, '.sh', '.py' or > even '.exe' [on Unix!]) is that this is probably some tool used by the > "real" program and not something I should run. Well, people have different thoughts and opinions, but files have ex- tensions so a person or program can easily tell what kind of thing it is without examining its contents. It makes writing programs easier which operate on files/programs - as all sorts of test scripts might be doing. Having no .py extension makes it impossible for them to im- port such files/programs. After all, OS X programs have a .app, too. My philosophy of turning Python scripts into more Unix-like "programs" is to write tiny wrappers which you can put into you favourite bin/ directory, like this very short one, pp, for using ReportLab's Python- Point program, which is contained in site-packages/reportlab: #! /usr/bin/env python import os, sys from reportlab.tools.pythonpoint import pythonpoint as pp path = sys.argv[1] pp.process(path, handout=0, cols=2, outDir=os.getcwd()) > You are right w.r.t. end-users running the testsuite. At the very > least we should add a new subcommand to setup.py (is that even > possible with distutils?) and/or document how to do that with the > source release. We should probably also distribute the runalltests > script, or simular functionality, with the binary distribution. You could also test the distribution installed from a .dmg archive. >> Then, looking at Just's code I wondered where the bundebuilder module >> comes from, and I'm surprised to see it in pyobjc/MPCompat but it's >> installed in site-packages! This is what sort of constantly confuses >> me... > > bundlebuilder is part of MacPython. We ship it because we use only > this part of MacPython OSX. Anyway, I'm not so happy seeing too much dumped into site-packages, be it by MacPython or PyObjC. Regards, Dinu -- Dinu C. Gherman ...................................................................... "The proper basis for a marriage is a mutual misunderstanding." (Oscar Wilde) |