Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Commit 88d88fb

Browse files
committed
fix: Disable python-build.
1 parent 68525fe commit 88d88fb

File tree

4 files changed

+35
-29
lines changed

4 files changed

+35
-29
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.1.2
4+
5+
#### ⚙️ Internal
6+
7+
- Temporarily disabling `python-build` functionality.
8+
39
## 0.1.1
410

511
#### 🐞 Fixes

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "python_plugin"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2021"
55
license = "MIT"
66
publish = false

src/proto.rs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,33 @@ pub fn register_tool(Json(_): Json<ToolMetadataInput>) -> FnResult<Json<ToolMeta
2323
}))
2424
}
2525

26-
#[plugin_fn]
27-
pub fn native_install(
28-
Json(input): Json<NativeInstallInput>,
29-
) -> FnResult<Json<NativeInstallOutput>> {
30-
let mut output = NativeInstallOutput::default();
31-
let env = get_proto_environment()?;
32-
33-
// https://github.com/pyenv/pyenv/tree/master/plugins/python-build
34-
if command_exists(&env, "python-build") {
35-
host_log!("Building with `python-build` instead of downloading a pre-built");
36-
37-
let result = exec_command!(
38-
inherit,
39-
"python-build",
40-
[
41-
input.context.version.as_str(),
42-
input.install_dir.real_path().to_str().unwrap(),
43-
]
44-
);
45-
46-
output.installed = result.exit_code == 0;
47-
} else {
48-
output.skip_install = true;
49-
}
50-
51-
Ok(Json(output))
52-
}
26+
// #[plugin_fn]
27+
// pub fn native_install(
28+
// Json(input): Json<NativeInstallInput>,
29+
// ) -> FnResult<Json<NativeInstallOutput>> {
30+
// let mut output = NativeInstallOutput::default();
31+
// let env = get_proto_environment()?;
32+
33+
// // https://github.com/pyenv/pyenv/tree/master/plugins/python-build
34+
// if command_exists(&env, "python-build") {
35+
// host_log!("Building with `python-build` instead of downloading a pre-built");
36+
37+
// let result = exec_command!(
38+
// inherit,
39+
// "python-build",
40+
// [
41+
// input.context.version.as_str(),
42+
// input.install_dir.real_path().to_str().unwrap(),
43+
// ]
44+
// );
45+
46+
// output.installed = result.exit_code == 0;
47+
// } else {
48+
// output.skip_install = true;
49+
// }
50+
51+
// Ok(Json(output))
52+
// }
5353

5454
#[derive(Deserialize)]
5555
struct ReleaseEntry {

0 commit comments

Comments
 (0)