MISS3D / s2p

This repository is not maintained, please use https://github.com/centreborelli/s2p instead.
GNU Affero General Public License v3.0
144 stars 77 forks source link

[refactor] make s2p a python package that can be installed with pip #198

Closed carlodef closed 5 years ago

carlodef commented 5 years ago

This pull request reorganises the sources in order to make s2p installable with pip. The main changes are:

Python codes that depend on s2p should not be affected: import s2p still works in the same way.

Shell scripts running python /path/to/your/clone/of/s2p/s2p.py should be updated to run instead s2p as a standalone command line tool.

This pull request contains the changes of pull request #191.

EDIT: A source distribution of s2p corresponding to this branch's version is available on PyPI and can be installed with pip:

pip install s2p
jmichel-otb commented 5 years ago

I think there should be only a few minor conflicts with #196:

jmichel-otb commented 5 years ago

I just did a merge by hand with #196 and it is fairly easy. There are a few minor conflicts on .travis.yaml and imports needs to be changed from s2plib to s2p in tests folder.