Skip to content

Commit

Permalink
Use the extension_name in develop builds
Browse files Browse the repository at this point in the history
This is the same now as for non-develop builds.
If a user sets `package.metadata.maturin` the import in other Python
files will reference that name.
For develop builds to also work it needs to have the same name.
  • Loading branch information
badboy committed Jan 17, 2023
1 parent c0106cb commit e74aa34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ pub fn write_uniffi_module(
let module;
if let Some(python_module) = &project_layout.python_module {
if editable {
let base_path = python_module.join(module_name);
let base_path = python_module.join(&project_layout.extension_name);
fs::create_dir_all(&base_path)?;
let target = base_path.join(&cdylib);
fs::copy(artifact, &target).context(format!(
Expand Down

0 comments on commit e74aa34

Please sign in to comment.