You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build the maturin module from rust, then test the module and type checking from there.
This will work, since the module was installed in editable module and the script will go
directly to the original directory.
Install the maturin module as a dependency from python. The script will successfully
execute because the module was installed correctly, but type-checking will fail. Listing
the files in the site-packages/test_module directory shows that the .pyi files were
not moved there.
I think this was from the old implementation of develop where the files were added to the source directory instead of the venv, I think you can just delete that code
Bug Description
Maturin isn't packaging submodule stubs along with the rest of the code when using the default configuration.
To reproduce this, take a look at https://github.com/oyarsa/maturin-submodule-stub/ and run the
run_test.sh
file at the repository root. It will:rust
, then test the module and type checking from there.This will work, since the module was installed in editable module and the script will go
directly to the original directory.
python
. The script will successfullyexecute because the module was installed correctly, but type-checking will fail. Listing
the files in the
site-packages/test_module
directory shows that the.pyi
files werenot moved there.
This is the file structure:
This is the full output:
Your Python version (
python -V
)Python 3.8.10
Your pip version (
pip -V
)20.0.2
What bindings you're using
pyo3
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
Reproduction steps on https://github.com/oyarsa/maturin-submodule-stub/
The text was updated successfully, but these errors were encountered: