[qmtest] running qmtest on bash in cygwin...
Stefan Seefeld
seefeld at sympatico.ca
Mon Aug 25 20:11:15 UTC 2003
Mark Mitchell wrote:
>>Hopefully I'll submit a new setup.py script later today as discussed
>>in another thread so no scripts are needed any more. In case you'd
>>rather wait...
>
>
> OK, sounds great!
>
> Please make sure that you read:
>
> http://www.codesourcery.com/contributions?program=QMTest
>
> We'll need some paperwork from you before we can accept your
> contributions.
ok, paper sent in, and here is a first patch.
As you will see from the diff, the changes are very conservative,
i.e. the only changes to the code are an attempted import of a
'config' module that is generated during the installation. If that
fails, a fake config object is created instead.
The new stuff is in the new toplevel 'setup.py' file. The new thing
here is that the 'install_data' variable that the python distutils
uses to install data files is coded into the 'config' module and
therefor acccessible to the code that needs them.
I hope that this mechanism can phase out the need for the 'QM_HOME'
and other environment variables.
Also to note is the fact that the magic number on top of the qmtest.py
script is replaced with the name of the actual python executable that
was used for the installation. Therefor 'QM_PYTHON' is obsolete, too.
Unfortunately, this doesn't quite work out for qmtest with the win32
python, but on a cygwin shell: Calling qmtest.py on a cygwin shell
would implicitely call 'python.exe /the/path/to/qmtest.py' but
python.exe is not able to deal with the path that way. What's needed
is a little wrapper script (only on windows !) that uses 'cygpath'
to map the path to the proper windows spelling first.
The next step will be to provide a command 'doc' that lets users
build the documentation via 'python setup.py doc'...
Regards,
Stefan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: setup.py
URL: <http://sourcerytools.com/pipermail/qmtest/attachments/20030825/8311ee3f/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://sourcerytools.com/pipermail/qmtest/attachments/20030825/8311ee3f/attachment-0001.ksh>
More information about the qmtest
mailing list