Skip to content

Commit c6299b5

Browse files
committed
remove vendor since it doesn't work very well
1 parent 37afd17 commit c6299b5

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

py5-resources/py5-module/src/py5_tools/tools/install_jdk.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@
3737
default=False,
3838
help="Install Java Runtime Environment (JRE) instead of Java Development Kit (JDK)",
3939
)
40-
parser.add_argument(
41-
"--vendor",
42-
action="store",
43-
dest="vendor",
44-
default="Adoptium",
45-
help="Java Vendor (bust be one of Corretto, Azul, or the default option Adoptium)",
46-
)
4740

4841

4942
def main():
@@ -60,7 +53,6 @@ def main():
6053

6154
java_version = args.java_version
6255
jre = args.jre
63-
vendor = args.vendor.title()
6456

6557
installing = "Java Runtime Environment" if jre else "Java Development Kit"
6658

@@ -70,16 +62,10 @@ def main():
7062
)
7163
return
7264

73-
if vendor not in {"Corretto", "Azul", "Adoptium"}:
74-
print(
75-
f"Java vendor must be one of Corretto, Azul, or the default option Adoptium",
76-
)
77-
return
78-
7965
try:
8066
print(f"Installing {installing} version {java_version}...")
8167
print(
82-
f"{installing} version {java_version} installed to {jdk.install(java_version, jre=jre, vendor=vendor)}"
68+
f"{installing} version {java_version} installed to {jdk.install(java_version, jre=jre)}"
8369
)
8470
except jdk.JdkError as e:
8571
print(

0 commit comments

Comments
 (0)