Update setup script and instructions.
Former-commit-id: 9f3031a2e5898b9e81374cd2deae5016bc3b65e7
This commit is contained in:
parent
46edafddf7
commit
88b3498cb3
25
README.rst
25
README.rst
|
@ -5,33 +5,22 @@ TODO description
|
|||
|
||||
Installation
|
||||
============
|
||||
The package depends on numpy, scipy, cython and GSL (>= 2.0).
|
||||
The first three can be obtained by pip. If you have a recent enough OS,
|
||||
The package depends on several python modules and GSL (>= 2.0).
|
||||
The python module dependencies should be installed automatically when running
|
||||
the installation script. If you have a recent enough OS,
|
||||
you can get GSL easily from the repositories; on Debian and derivatives,
|
||||
just run ``apt-get install libgsl-dev`` under root. Alternatively,
|
||||
you can `get the source
|
||||
<https://www.gnu.org/software/gsl/>`_ get the source and compile it yourself.
|
||||
|
||||
After all dependencies are installed, install qpms to your local python library using::
|
||||
After GSL is installed, you can install qpms to your local python library using::
|
||||
|
||||
python3 setup.py install --user
|
||||
|
||||
If GSL is not installed the standard library path on your system, you might
|
||||
need to pass it to the installation script using the LD_LIBRARY_PATH environment
|
||||
variable.
|
||||
|
||||
Easiest installation ever
|
||||
=========================
|
||||
(Just skip those you have already installed.)
|
||||
|
||||
::
|
||||
|
||||
pip3 install --user numpy
|
||||
pip3 install --user scipy
|
||||
pip3 install --user cython
|
||||
pip3 install --user git+https://github.com/moble/quaternion.git
|
||||
pip3 install --user git+https://github.com/moble/spherical_functions.git
|
||||
python3 setup.py install --user
|
||||
|
||||
|
||||
|
||||
Documentation
|
||||
=============
|
||||
|
||||
|
|
7
setup.py
7
setup.py
|
@ -39,11 +39,8 @@ qpms_c = Extension('qpms_c',
|
|||
setup(name='qpms',
|
||||
version = "0.2.994",
|
||||
packages=['qpms'],
|
||||
setup_requires=['cython>0.28'],
|
||||
install_requires=['cython>=0.21','quaternion','spherical_functions','scipy>=0.18.0'
|
||||
#'py_gmm' # no longer needed
|
||||
],
|
||||
# TODO implement https://stackoverflow.com/questions/17366784/setuptools-unable-to-use-link-from-dependency-links and update README.md accordingly
|
||||
setup_requires=['cython>=0.28',],
|
||||
install_requires=['cython>=0.28','quaternion','spherical_functions','scipy>=0.18.0'],
|
||||
dependency_links=['https://github.com/moble/quaternion/archive/v2.0.tar.gz','https://github.com/moble/spherical_functions/archive/master.zip'],
|
||||
ext_modules=cythonize([qpms_c], include_path=['qpms']),
|
||||
cmdclass = {'build_ext': build_ext},
|
||||
|
|
Loading…
Reference in New Issue