Browse Source

fix: correct python file path

master
Ramon Calvo 1 year ago
parent
commit
886981e120
  1. 2
      build.rs
  2. 3
      pyproject.toml
  3. 0
      src/python/kernel.py

2
build.rs

@ -3,7 +3,7 @@ use std::process::Command;
fn main() { fn main() {
// Path to your Python script // Path to your Python script
let python_script = "src/kernel.py"; let python_script = "src/python/kernel.py";
let python_executable = if Path::new(".venv").exists() { let python_executable = if Path::new(".venv").exists() {
if cfg!(windows) { if cfg!(windows) {

3
pyproject.toml

@ -13,3 +13,6 @@ dependencies = [
[build-system] [build-system]
requires = ["hatchling"] requires = ["hatchling"]
build-backend = "hatchling.build" build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/python"]

0
src/kernel.py → src/python/kernel.py

Loading…
Cancel
Save