Skip to content
Snippets Groups Projects

Support for pip installing this Orekit data repository

Merged Clément Jonglez requested to merge yzokras/orekit-data:python-package into master
1 file
+ 8
1
Compare changes
  • Side-by-side
  • Inline
+ 8
1
@@ -52,7 +52,14 @@ pip install git+https://gitlab.orekit.org/orekit/orekit-data.git
This will install a Python library named `orekitdata`. The Python library receives a new version tag at every commit in this repository so that your Python project can pull the newest version of the orekit data every time this repository is updated. The 7 last characters of the version tag correspond to the 7 first characters of the git hash of the commit: for instance the Python version `orekitdata-0+untagged.70.g91b2c79` correspond to the commit of the `master` branch of this repository with a githash starting with `91b2c79`.
Then to pass the data folder to Orekit in Python:
Then to pass the data folder to Orekit in Python, a new argument `from_pip_library` was added to the `setup_orekit_curdir` method:
```python
from orekit.pyhelpers import setup_orekit_curdir
setup_orekit_curdir(from_pip_library=True)
```
Or optionally, pass the path to the `orekitdata` library to the `filename` argument:
```python
import orekitdata
Loading