The _jplephem.so file was not being linked correctly to the right version of Python. This meant import jplephem would crash and burn with a Fatal Python error: PyThreadState_Get: no current thread error, see #3.
The change to the Makefile alters the _jplephem.so file to point to the right python installation. The change affects OSX only.
The change to install.py explicitly sets the python version for python setup.py build to be the same as that used for python install.py
Thanks to @mindriot101 and @pchote for their help in fixing this.
I've tested this pull request using some sample CAFE data on OSX and it runs through without any problems. I cannot test on Linux directly, hopefully there are no issues.
The
_jplephem.so
file was not being linked correctly to the right version of Python. This meantimport jplephem
would crash and burn with aFatal Python error: PyThreadState_Get: no current thread
error, see #3.The change to the Makefile alters the
_jplephem.so
file to point to the right python installation. The change affects OSX only.The change to
install.py
explicitly sets the python version forpython setup.py build
to be the same as that used forpython install.py
Thanks to @mindriot101 and @pchote for their help in fixing this.