Mercurial

From Autodiff
Jump to: navigation, search

Installation of mercurial and qct

mercurial

mercurial was installed from the hg-stable repository. Our local clone of the repository resides at /home/derivs/software/hg/mercurial-stable. From this directory, we ran the following command to install:

 python setup.py install --prefix=/home/derivs/software/hg/mercurial-stable_inst --exec-prefix=/home/derivs/software/`whatami`/mercurial-stable_inst

This command can be run on any architecture (we ran it on X86_64 and ia32).

After installation, the wrapper script /home/derivs/software/hg/mercurial-stable_inst/bin/hg was modifed to add the installation path of the libraries for the new install:

 cmdOutput = os.popen('whatami')
 libPath = '/home/derivs/software/'+string.rstrip(cmdOutput.read())+'/mercurial-stable_inst/lib/python2.5/site-packages'
 cmdOutput.close()
 sys.path.insert(0,libPath)

This script is platform independent, and the platform-specific libraries are installed in /home/derivs/software/${ARCH}/mercurial-stable_inst

qct

qct was installed from a source tarball at /home/derivs/software/qct-1.5. The library path was hardcoded in the wrapper script:

 sys.path.insert(0,'/home/derivs/software/qct-1.5/build/lib')

If you must have the ability to run hg qct instead of just running qct (which is exactly the same thing), then add the following to your .hgrc file:

 [extensions]
 qct=/home/derivs/software/qct-1.5/plugins/qct.py