mahf-opt / mahf

A framework for modular construction and evaluation of metaheuristics.
GNU General Public License v3.0
10 stars 0 forks source link

Non static state #156

Closed luleyleo closed 1 year ago

luleyleo commented 1 year ago

Still needs some polishing, but it's mostly done.

Saethox commented 1 year ago

I had some trouble building this under Windows (my fault for using it :D), which was mostly because of coco-sys.

Some notes:

#[cfg(target_os = "linux")]
let python_path = "python3";
#[cfg(target_os = "windows")]
let python_path = "python";

Command::new(python_path)
    .arg(build_script_path)
    .arg("prepare-build-rust")
    .output()
    .expect("failed to run prepare-build-rust command");

With those, it compiles properly.

luleyleo commented 1 year ago

Everything should be working now.

Saethox commented 1 year ago

LGTM, I think we can merge.