Skip to content

Commit

Permalink
build: fix build script to not panic when python binding dir is not f…
Browse files Browse the repository at this point in the history
…ound when publishing
  • Loading branch information
nmammeri committed Sep 11, 2024
1 parent 697caf2 commit fb09b37
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions extractous-core/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ fn main() {
// canonicalize does not work on Windows because it returns UNC paths
//let python_bind_dir = fs::canonicalize("../bindings/extractous-python/python/extractous").unwrap();
let python_bind_dir = root_dir.join("../bindings/extractous-python/python/extractous");
if !python_bind_dir.is_dir() {
panic!("{} does not exist", python_bind_dir.display())
};

// Use JAVA_HOME to find or install GraalVM JDK
let graalvm_home = get_graalvm_home(&jdk_install_dir);
Expand Down Expand Up @@ -265,4 +262,4 @@ pub fn install_graalvm_ce(install_dir: &PathBuf) -> PathBuf {
}

install_dir.join(main_dir)
}
}

0 comments on commit fb09b37

Please sign in to comment.