Implement new version-numbering code

New code (following that in `pandas`) to store the version-number
information in one place (the setup script) and generate a package
module during the install phase (rather than have to maintain the
version number in multiple places).