Skip to content

Commit

Permalink
Merge pull request #124 from eatPizza311/master
Browse files Browse the repository at this point in the history
fix FileNotFoundError when installing irust_kernel
  • Loading branch information
sigmaSd authored Oct 12, 2023
2 parents 441d21b + 24cb453 commit f692a51
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions crates/irust_repl/irust_kernel/irust_kernel/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,20 @@ def get_cargo_target_dir():
print('Fetching `irust` repo and compiling `Re` executable')
subprocess.run(["git", "clone","--depth","1", "https://github.com/sigmasd/irust"],cwd=td)
irust_repl_dir = os.path.join(td,"irust", "crates", "irust_repl")
subprocess.run(["cargo", "b", "--release", "--example", "re", "--target-dir",cargo_target_dir], cwd=irust_repl_dir)

subprocess.run(
[
"cargo",
"b",
"--release",
"--example",
"re",
"--target-dir",
cargo_target_dir,
"--manifest-path",
os.path.join(irust_repl_dir, "Cargo.toml"),
]
)

src = os.path.join(cargo_target_dir, "release", "examples", "re")
dst = os.path.join(td, "re")
shutil.copy2(src, dst)
Expand Down

0 comments on commit f692a51

Please sign in to comment.