Showing posts with label easy_install. Show all posts
Showing posts with label easy_install. Show all posts

Saturday, July 23, 2011

Finding versions of the Abjad toolchain

Use the following commands to find versions of Abjad tools:

$ lilypond --version
GNU LilyPond 2.15.3 ...

$ python --version
Python 2.6.1

$ py.test --version
This is py.test version 2.1.0 ...

$ sphinx-build --version
Sphinx v1.0.7 ...

$ less `which easy_install`
... __requires__ = 'setuptools==0.6c9' ...

$ svn --version
svn, version 1.6.17 ...

Monday, July 18, 2011

Updating py.test

Update py.test with easy install ...

easy_install -U pytest

... and notice the lack of period in pytest.

If you have multiple versions of Python on your system then you may need to use ...

easy_install-2.6 -U pytest

... instead.

Monday, August 2, 2010

Using easy_install with an explicit version of Python

It is possible to have multiple versions of Pyton installed on your system:

$ ls -1 /usr/bin/py*
/usr/bin/pydoc
/usr/bin/pydoc2.5
/usr/bin/pydoc2.6
/usr/bin/python
/usr/bin/python-config
/usr/bin/python2.5
/usr/bin/python2.5-config
/usr/bin/python2.6
/usr/bin/python2.6-config
/usr/bin/pythonw
/usr/bin/pythonw2.5
/usr/bin/pythonw2.6

This can be a problem when you use easy_install to install a new Python package:

easy_install -U Sphinx

Fortunately, you will find multiple versions of easy_install on your machine:

$ ls -1 /usr/bin/easy_install*
/usr/bin/easy_install
/usr/bin/easy_install-2.5
/usr/bin/easy_install-2.6

This makes it possible to use easy_install with an explicit version of Python:

$ easy_install-2.6 -U Sphinx