-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update of wrappers after last commit
- Loading branch information
Showing
6 changed files
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
# Usage: ./generate-python-stubs.sh | ||
# To be run *after* building pymrpt. | ||
|
||
|
||
# Generate stub .pyi files: | ||
echo "Generating stub pyi files..." | ||
export PYTHONPATH=$(realpath $(pwd)/../build-Release/) | ||
if compgen -G "$PYTHONPATH/mrpt/pymrpt*.so" > /dev/null; then | ||
echo "Using mrpt module found under: $PYTHONPATH" | ||
else | ||
echo "$PYTHONPATH does not seem to contain a compiled pymrpt module!" | ||
exit 1 | ||
fi | ||
stubgen -p mrpt -p mrpt.pymrpt -o stubs-out | ||
|
||
# applying manual patches to stubs: | ||
echo "Applying manual patches to stubs..." | ||
find . -name "patch-stubs*.diff" | xargs -I FIL bash -c "echo FIL && git apply FIL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters