Skip to content

Commit

Permalink
remove __init__.py requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
krpatter-intc committed Jul 17, 2023
1 parent 38334d7 commit 696537b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/project_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,6 @@ impl ProjectLayout {
};

if python_module.is_dir() {
if !python_module.join("__init__.py").is_file()
&& !python_module.join("__init__.pyi").is_file()
{
bail!("Found a directory with the module name ({}) next to Cargo.toml, which indicates a mixed python/rust project, but the directory didn't contain an __init__.py file.", module_name)
}

eprintln!("🍹 Building a mixed python/rust project");

Expand Down

0 comments on commit 696537b

Please sign in to comment.