diff options
author | Juan Carlos <juancarlospaco@gmail.com> | 2021-09-10 05:20:32 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 10:20:32 +0200 |
commit | 0ef830577b6f6ee2314ecdfe56a631ffd4f8e4c7 (patch) | |
tree | 9ce05ae39d8e1d10550e533db37501c75714c096 | |
parent | a896f9f19eec221b8651849297bdbc8be72b00af (diff) | |
download | Nim-0ef830577b6f6ee2314ecdfe56a631ffd4f8e4c7.tar.gz |
distros.foreignDeps made public (#18830)
* Deprecate distros.echoForeignDeps * Deprecate distros.echoForeignDeps * https://github.com/nim-lang/Nim/pull/18830#discussion_r705364162 * https://github.com/nim-lang/Nim/pull/18830#discussion_r705364162
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | lib/pure/distros.nim | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/changelog.md b/changelog.md index 3658fb105..9e449dcaa 100644 --- a/changelog.md +++ b/changelog.md @@ -380,6 +380,7 @@ - Deprecated `sequtils.delete` and added an overload taking a `Slice` that raises a defect if the slice is out of bounds, likewise with `strutils.delete`. + ## Language changes - The `cstring` doesn't support `[]=` operator in JS backend. diff --git a/lib/pure/distros.nim b/lib/pure/distros.nim index ddf0fd30c..797698d61 100644 --- a/lib/pure/distros.nim +++ b/lib/pure/distros.nim @@ -27,11 +27,11 @@ ## ## See `packaging <packaging.html>`_ for hints on distributing Nim using OS packages. -from strutils import contains, toLowerAscii +from std/strutils import contains, toLowerAscii when not defined(nimscript): - from osproc import execProcess - from os import existsEnv + from std/osproc import execProcess + from std/os import existsEnv type Distribution* {.pure.} = enum ## the list of known distributions @@ -211,7 +211,7 @@ template detectOs*(d: untyped): bool = detectOsImpl(Distribution.d) when not defined(nimble): - var foreignDeps: seq[string] = @[] + var foreignDeps*: seq[string] = @[] ## Registered foreign deps. proc foreignCmd*(cmd: string; requiresSudo = false) = ## Registers a foreign command to the internal list of commands |