Previous topic

music21.test.testDocumentation

Next topic

music21.test.testSingleCoreAll

Table Of Contents

Table Of Contents

This Page

music21.test.testInstallation

InstallRunner

class music21.test.testInstallation.InstallRunner

Base class for install runners. All methods in this class are cross platform. Platform specific code should be placed in subclasses.

InstallRunner methods

InstallRunner.clean()
InstallRunner.copyToScratch(fp)
InstallRunner.download()

Optionally download the installation package from on-line. This is not usually run, as a local build (int0 dist) is always going to be more up to date. Instead, pass a file path to an installer package, use as an arg to run.

InstallRunner.install(fp)
InstallRunner.run(fpDistribution=None)

Run the installer, test, and clean.

If fpDistribution is not None, the specified distribution will be used. Thus, a built distribution on a local machine can be pass by file path.

The run does three things: install the source, run all tests, and tehn remove the installation.

InstallRunner.test()

InstallRunnerNix

class music21.test.testInstallation.InstallRunnerNix

Install runner for mac, linux, and unix machines.

InstallRunnerNix bases

InstallRunnerNix methods

InstallRunnerNix.clean()

Remove all files created in this installation.

InstallRunnerNix.copyToScratch(fp)

Copy a file to a scratch directory.

This is used to store the downloaded or passed distribution file.

InstallRunnerNix.download()
InstallRunnerNix.install(fp, pyBin)

Decompress, then install into site packages using setup.py install.

InstallRunnerNix.test(pyBin)

Run the main music21 test script.

This assumes that the only music21 files foudn in the search pat are those that are contained in site-packages. If there is another music21 installation that is also in a search path on this machine, it is possible that those files, not the ones just installed, are being tested.

Methods inherited from InstallRunner: