Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoudbuzing committed Nov 21, 2018
1 parent d0a3a74 commit c9c9b9f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Prototypes/PacletInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
"Prototypes`$UUIDStringPattern","Prototypes`GeoContourMap",
"Prototypes`RandomRomanNumeral", "Prototypes`Deconstruct", "Prototypes`RandomDelete",
"Prototypes`RandomPosition", "Prototypes`What3Words", "Prototypes`$HashTypes",
"Prototypes`PrimeCount", "Prototypes`PrimeSum", "Prototypes`$EnglishWords", "Prototypes`OpenSky","Prototypes`SetAutoStyleOptions"}
"Prototypes`PrimeCount", "Prototypes`PrimeSum", "Prototypes`$EnglishWords", "Prototypes`OpenSky","Prototypes`SetAutoStyleOptions",
"Prototypes`ExternalInstall", "Prototypes`ExternalUninstall"}
}
}
]
2 changes: 1 addition & 1 deletion Prototypes/Prototypes.wl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Module[ {files},
"Image.wl", "Language.wl", "Paclet.wl", "Formats.wl",
"Resources.wl", "Search.wl", "String.wl", "System.wl", "Color.wl", "Styles.wl",
"Entities.wl", "WolframAlpha.wl", "Translation.wl","GeoGraphics.wl", "Words.wl", "Packages.wl", "Random.wl",
"Cryptography.wl", "Service/What3Words.wl", "Service/OpenSky.wl", "Primes/Primes.wl"};
"Cryptography.wl", "External.wl", "Service/What3Words.wl", "Service/OpenSky.wl", "Primes/Primes.wl"};
Map[
Function[ {file},
AppendTo[ timings, file<>"-Before" -> N@SessionTime[] ];
Expand Down
3 changes: 3 additions & 0 deletions Prototypes/Source/External.wl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ExternalInstall["Python", package_String] := RunProcess[{"pip", "install", package}]

ExternalUninstall["Python", package_String] := RunProcess[{"pip", "uninstall", "-y", package}]
4 changes: 4 additions & 0 deletions Prototypes/Source/Usage.wl
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,7 @@ PrimeSum::usage = "PrimeSum[n] gives the sum of primes less than or equal to 'n'
$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";

SetAutoStyleOptions::usage = "SetAutoStyleOptions[n] uses ColorData[n] to set syntax coloring styles";

(* external *)
ExternalInstall::usage = "ExternalInstall[\"Python\", package] installs 'package' for Python using 'pip install'";
ExternalUninstall::usage = "ExternalUninstall[\"Python\", package] uninstalls 'package' for Python using 'pip uninstall -y'";

0 comments on commit c9c9b9f

Please sign in to comment.