Skip to content
Snippets Groups Projects
Commit 4f109fe3 authored by Clément Jonglez's avatar Clément Jonglez
Browse files

If orekit-data merge request accepted: no need for extra argument to collect the orekitdata lib

parent 4b8b32d6
No related branches found
No related tags found
1 merge request!6add hook to make orekit_jpype pyinstallable
......@@ -104,10 +104,10 @@ This repository contains hooks for `pyinstaller` so that your project relying on
### Using the orekitdata Python library
If you are using the [orekit data repository as a Python library](https://gitlab.orekit.org/orekit/orekit-data#notes-for-orekit-python-users), as the Orekit data files are not Python files, you have to specify the following option to `pyinstaller` to collect them into your executable:
If you are using the [orekit data repository as a Python library](https://gitlab.orekit.org/orekit/orekit-data#notes-for-orekit-python-users), it already contains hooks for `pyinstaller` so you don't have to pass any argument, the orekit data folder will be automatically collected:
```bash
pyinstaller --collect-data orekitdata <your main Python script>
pyinstaller <your main Python script>
```
This will create a folder `dist/` containing your executable.
......
......@@ -20,7 +20,6 @@ def test_start_and_stop(tmp_path):
'--name', name,
'--distpath', fspath(dist),
'--workpath', fspath(work),
'--collect-data', 'orekitdata',
fspath(test_file)
])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment