geophysics/MTpy — pull request #4 by nietky (2012-10-09 22:20:09+00:00)
Title: Set up MTpy as a package

Hi all

The branch setup_package2 now contains a few commits to set up ``MTpy`` as a package.

There is a detailed explanation of the changes I made in the commit messages (see the tab on this page).

Can one of you please checkout this branch and test to see if it works for you?

To checkout, assuming https://github.com/geophysics/MTpy.git is a remote named "origin":

$ git fetch origin
$ git checkout --track origin/setup_package2

The proposed changes will then be your working copy. To install as a package:

$ python setup.py install

Then, even if your PYTHONPATH environment variable is empty, in an empty Python interpreter you should be able to do:

>>> import MTpy

or, for example:

>>> from MTpy.core.Z import Z

Can anyone confirm this works? I don't want to screw up master again.