Skip to content

Commit

Permalink
Merge branch 'python_build_improvements' of github.com:SamFlt/visp in…
Browse files Browse the repository at this point in the history
…to python_build_improvements
  • Loading branch information
SamFlt committed Feb 12, 2024
2 parents d6259c3 + 1bb83fd commit e660431
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/python/stubs/run_stub_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@
output_root = Path(args.output_root)
assert output_root.exists()
bin_folder = Path(sys.executable).parent
stubgen_entry_point = bin_folder / 'pybind11-stubgen'
assert stubgen_entry_point.exists()

subprocess.run([str(stubgen_entry_point), '-o', str(output_root.absolute()), '--ignore-all-errors', '_visp'], check=True)
subprocess.run([sys.executable, '-m', 'pybind11_stubgen', '-o', str(output_root.absolute()), '--ignore-all-errors', '_visp'], check=True)

# Generate stubs for the bindings (C++ side) and mock it so that they appear in the true 'visp' package
p = Path('./_visp')
Expand Down

0 comments on commit e660431

Please sign in to comment.