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
This commit is contained in:
parent
a896f9f19e
commit
0ef830577b
2 changed files with 5 additions and 4 deletions
|
|
@ -380,6 +380,7 @@
|
||||||
- Deprecated `sequtils.delete` and added an overload taking a `Slice` that raises a defect
|
- 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`.
|
if the slice is out of bounds, likewise with `strutils.delete`.
|
||||||
|
|
||||||
|
|
||||||
## Language changes
|
## Language changes
|
||||||
|
|
||||||
- The `cstring` doesn't support `[]=` operator in JS backend.
|
- The `cstring` doesn't support `[]=` operator in JS backend.
|
||||||
|
|
|
||||||
|
|
@ -27,11 +27,11 @@
|
||||||
##
|
##
|
||||||
## See `packaging <packaging.html>`_ for hints on distributing Nim using OS packages.
|
## 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):
|
when not defined(nimscript):
|
||||||
from osproc import execProcess
|
from std/osproc import execProcess
|
||||||
from os import existsEnv
|
from std/os import existsEnv
|
||||||
|
|
||||||
type
|
type
|
||||||
Distribution* {.pure.} = enum ## the list of known distributions
|
Distribution* {.pure.} = enum ## the list of known distributions
|
||||||
|
|
@ -211,7 +211,7 @@ template detectOs*(d: untyped): bool =
|
||||||
detectOsImpl(Distribution.d)
|
detectOsImpl(Distribution.d)
|
||||||
|
|
||||||
when not defined(nimble):
|
when not defined(nimble):
|
||||||
var foreignDeps: seq[string] = @[]
|
var foreignDeps*: seq[string] = @[] ## Registered foreign deps.
|
||||||
|
|
||||||
proc foreignCmd*(cmd: string; requiresSudo = false) =
|
proc foreignCmd*(cmd: string; requiresSudo = false) =
|
||||||
## Registers a foreign command to the internal list of commands
|
## Registers a foreign command to the internal list of commands
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue