Skip to content

Commit c9c9b9f

Browse files
committed
updates
1 parent d0a3a74 commit c9c9b9f

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

Prototypes/PacletInfo.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
"Prototypes`$UUIDStringPattern","Prototypes`GeoContourMap",
7575
"Prototypes`RandomRomanNumeral", "Prototypes`Deconstruct", "Prototypes`RandomDelete",
7676
"Prototypes`RandomPosition", "Prototypes`What3Words", "Prototypes`$HashTypes",
77-
"Prototypes`PrimeCount", "Prototypes`PrimeSum", "Prototypes`$EnglishWords", "Prototypes`OpenSky","Prototypes`SetAutoStyleOptions"}
77+
"Prototypes`PrimeCount", "Prototypes`PrimeSum", "Prototypes`$EnglishWords", "Prototypes`OpenSky","Prototypes`SetAutoStyleOptions",
78+
"Prototypes`ExternalInstall", "Prototypes`ExternalUninstall"}
7879
}
7980
}
8081
]

Prototypes/Prototypes.wl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Module[ {files},
2020
"Image.wl", "Language.wl", "Paclet.wl", "Formats.wl",
2121
"Resources.wl", "Search.wl", "String.wl", "System.wl", "Color.wl", "Styles.wl",
2222
"Entities.wl", "WolframAlpha.wl", "Translation.wl","GeoGraphics.wl", "Words.wl", "Packages.wl", "Random.wl",
23-
"Cryptography.wl", "Service/What3Words.wl", "Service/OpenSky.wl", "Primes/Primes.wl"};
23+
"Cryptography.wl", "External.wl", "Service/What3Words.wl", "Service/OpenSky.wl", "Primes/Primes.wl"};
2424
Map[
2525
Function[ {file},
2626
AppendTo[ timings, file<>"-Before" -> N@SessionTime[] ];

Prototypes/Source/External.wl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ExternalInstall["Python", package_String] := RunProcess[{"pip", "install", package}]
2+
3+
ExternalUninstall["Python", package_String] := RunProcess[{"pip", "uninstall", "-y", package}]

Prototypes/Source/Usage.wl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,7 @@ PrimeSum::usage = "PrimeSum[n] gives the sum of primes less than or equal to 'n'
151151
$EnglishWords::usage = "$EnglishWords is a list of over 450,000 words found in the English language. Uses data from: https://github.com/dwyl/english-words";
152152

153153
SetAutoStyleOptions::usage = "SetAutoStyleOptions[n] uses ColorData[n] to set syntax coloring styles";
154+
155+
(* external *)
156+
ExternalInstall::usage = "ExternalInstall[\"Python\", package] installs 'package' for Python using 'pip install'";
157+
ExternalUninstall::usage = "ExternalUninstall[\"Python\", package] uninstalls 'package' for Python using 'pip uninstall -y'";

0 commit comments

Comments
 (0)