Mercurial > hg
view rust/hg-cpython/Cargo.toml @ 40980:f6987f654356
setup: avoid attempting to invoke the system-wide hg.exe on Windows
On Windows, the executable in the current directory gets priority over anything
in $PATH (both for cmd.exe and MSYS). That means, the former code was launching
the local hg.exe instead of the system-wide one, if it was previously built. If
that failed, it then fell back to the local hg code, but run through python.exe.
I'm not sure what it is about ef7119cd4965, but that started throwing up a
messagebox that python37.dll couldn't be loaded. (And indeed, python37 is not
in $PATH by default.) Invoking the local hg via the current python avoids that.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 17 Dec 2018 17:44:45 -0500 |
parents | 5532823e8c18 |
children | 4277e20cfec4 |
line wrap: on
line source
[package] name = "hg-cpython" version = "0.1.0" authors = ["Georges Racinet <gracinet@anybox.fr>"] [lib] name='rusthg' crate-type = ["cdylib"] [features] default = ["python27", "python27-sys"] python27 = ["cpython/python27-sys", "cpython/extension-module-2-7"] [dependencies] hg-core = { path = "../hg-core" } libc = '*' [dependencies.cpython] version = "*" default-features = false [dependencies.python27-sys] version = "0.2.1" optional = true [dependencies.python3-sys] version = "0.2.1" optional = true