Skip to content

Commit 0ef8305

Browse files
distros.foreignDeps made public (#18830)
* Deprecate distros.echoForeignDeps * Deprecate distros.echoForeignDeps * #18830 (comment) * #18830 (comment)
1 parent a896f9f commit 0ef8305

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@
380380
- Deprecated `sequtils.delete` and added an overload taking a `Slice` that raises a defect
381381
if the slice is out of bounds, likewise with `strutils.delete`.
382382

383+
383384
## Language changes
384385

385386
- The `cstring` doesn't support `[]=` operator in JS backend.

lib/pure/distros.nim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
##
2828
## See `packaging <packaging.html>`_ for hints on distributing Nim using OS packages.
2929

30-
from strutils import contains, toLowerAscii
30+
from std/strutils import contains, toLowerAscii
3131

3232
when not defined(nimscript):
33-
from osproc import execProcess
34-
from os import existsEnv
33+
from std/osproc import execProcess
34+
from std/os import existsEnv
3535

3636
type
3737
Distribution* {.pure.} = enum ## the list of known distributions
@@ -211,7 +211,7 @@ template detectOs*(d: untyped): bool =
211211
detectOsImpl(Distribution.d)
212212

213213
when not defined(nimble):
214-
var foreignDeps: seq[string] = @[]
214+
var foreignDeps*: seq[string] = @[] ## Registered foreign deps.
215215

216216
proc foreignCmd*(cmd: string; requiresSudo = false) =
217217
## Registers a foreign command to the internal list of commands

0 commit comments

Comments
 (0)