delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/02/03/09:36:44

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C28F2398EC37
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=schaeffler.com
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=lemkemch AT schaeffler DOT com
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=Gx2TmRZ2ls7UgLUGK/dZDMZKVv8mVt/MYP3yXe0GglgyTFfFtPEy0DHgwSmPdWvNj05ngiSFeNBJGJu4QsMmkKXGZoUiPRjBtgEleub1mj4b4+1QKt0lYRmRnVTv34QjySbtpuEDuoiYuDeenEQH89RUUEVrj9ikXc5os9fsPbkpMQHRkHjzQsCcZfs3lZ4or1DOMd1Y5a44w5h5QOAqSVdhZaGUaFEesPhlm132uhbf7Am/X1g7KV9n5xnArLQNdYiRLxhaDYInY9DQvgqcXdyGZVNqIbzzL4x3C1scy9lkLO3VefubY+PlUTqukCn1KoDCYxS6wzkSy9NIU+B0KQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=0QN02ZncHqoYF97CsJ/XCsnlWJHF+tzBsTYvvnyZ3og=;
b=gRwC7+3v96Bt20+RvrOCaFJtcMtMUHUOmpQ8fsrWmQDxAi/g9Za7ZJVPRnsYwKzJKRn6NBJ7wS09ANi3lRL34LV7nIO7+ebkiQkVzCNonfHRNjmRXVZDlVL7fYWSkKlKVfnMuoyM75vSitQEC+wm3L2unwi+KK9bR2BuzJOljP2ykIS4f+r9xbKtflz6d+S4KZOGYtYg+0Hl9HGYp2OrEZUmeTDk97wQBF/vAuI/SVH2DZsUNp6eq7Jgsvd0rwx1VxFRiCdfcVok6maXODFHaKMpXODvyDSR4vzicj90XSy6INGESlAUS+6V5nf6OdMpnXKZOGPIOkbFnmbV4oXGYQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=schaeffler.com; dmarc=pass action=none
header.from=schaeffler.com; dkim=pass header.d=schaeffler.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=worksite.onmicrosoft.com; s=selector2-worksite-onmicrosoft-com;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=0QN02ZncHqoYF97CsJ/XCsnlWJHF+tzBsTYvvnyZ3og=;
b=cP+l2z5ZkbnAsOJ4bbV8Cc3yxa1PckkimKrg58JJ9Zxs7CrFSi/O1ZRz3ZQwPQT4rqKRtQuUKFu/6WtR4jWM76D5eSxO6Pt4yey9ia2rINWCZPq9V0VYAhxt7uznM0JYDX1yKHPcE4spL1dyohYQowpigOG7USowhiHiwrbDg9c=
From: "Lemke, Michael SF/HZA-ZIC2" <lemkemch AT schaeffler DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: python sys.executable inconsistency if called from cmd
Thread-Topic: python sys.executable inconsistency if called from cmd
Thread-Index: Adb6OAV0nj0f++LjRdqSUpkvUq02Zg==
Date: Wed, 3 Feb 2021 14:35:34 +0000
Message-ID: <VI1PR03MB644670814A7A43C6934EBC93BEB49@VI1PR03MB6446.eurprd03.prod.outlook.com>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: cygwin.com; dkim=none (message not signed)
header.d=none;cygwin.com; dmarc=none action=none header.from=schaeffler.com;
x-originating-ip: [199.247.40.39]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 360f0263-7c93-4179-aaee-08d8c850f7ac
x-ms-traffictypediagnostic: VI1PR03MB2959:
x-microsoft-antispam-prvs: <VI1PR03MB295990D6A8F2963A1EB7422DBEB49 AT VI1PR03MB2959 DOT eurprd03 DOT prod DOT outlook DOT com>
x-ms-oob-tlc-oobclassifiers: OLM:6430;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: XjcMmPAuCxu6Bz4yJZkFbtwn3nRqKnucTgyj0igvA2fMmaaNqqmnP338fiRmJJ/XzY4V8GBd9WFu3FpNVawOSwgc5oct+hVbVXOO53Kr8Fhcq0yepcLqshSmZKMbrqyb6TUUgjyyXKwClYDHWK4miUKu4vE8IGaQXQO6ZTGR68AHC7PlywkSNGP0L2xPWO3pqhSNaw79akZ7UC3G29yYEPYqy5DZphlrKvYoCvYR+z6BMbnWiRQFvadSg2sA5EauZp4l+W7aL+EPBbkQ2FSUmvuoM8Yk1QM7ajmwvH2NXpDhVnQaUOdfPPyMkO/tMEPydBMmzkHi/mW1fcOCwCpKlDroAQCIOT3Wjbcd5FjrSy6kvfZUJcdIqDjHtFvmiwJk3vBNtjFINUwd0K4pXSZsL2zg462XwbCSwlyV3zO/XRi1L1t+nHtRYAKoXhxyx2FsO3r8JPpVoAqKIEDDVXFipfQWfRbhg2oocTWzDjb+sBnxM02Ys9SFWdS3hr1bwIy31UXk/Ym2JrrOXB4cGw74fKrx2gve4IZl0YUNwiob0brCRqezjlGZuJNORZQmWqMq
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:VI1PR03MB6446.eurprd03.prod.outlook.com; PTR:; CAT:NONE;
SFS:(4636009)(136003)(376002)(366004)(396003)(346002)(39850400004)(478600001)(6916009)(86362001)(71200400001)(7696005)(76116006)(66446008)(66556008)(64756008)(66946007)(66476007)(316002)(2906002)(33656002)(6506007)(9686003)(55016002)(8676002)(26005)(52536014)(5660300002)(186003)(8936002)(4744005)(460985005);
DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: =?utf-8?B?cmNocW5ZcktLOFBVY3RRRFVqbkdlT0Zkb0V0S1FW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exchange-transport-forked: True
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: VI1PR03MB6446.eurprd03.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 360f0263-7c93-4179-aaee-08d8c850f7ac
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2021 14:35:34.9718 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 67416604-6509-4014-9859-45e709f53d3f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: saDRWwXCEUrdmOorfKHV0WpW+to9TXV5cB9eRFyuqDcjN92ITQZ6XTxSaQtVuYY96ARC84owNoOPdKOn6WBt2Q==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR03MB2959
X-OriginatorOrg: schaeffler.com
X-MailControlDKIMCheck: dGVtcGVycm9yIHdvcmtzaXRlLm9ubWljcm9zb2Z0LmNvbSBbaW52YWxpZCAocHVibGljIGtleTogRE5TIHF1ZXJ5IHRpbWVvdXQgZm9yIHNlbGVjdG9yMi13b3Jrc2l0ZS1vbm1pY3Jvc29mdC1jb20uX2RvbWFpbmtleS53b3Jrc2l0ZS5vbm1pY3Jvc29mdC5jb20pXQ==
X-MailControl-OutInfo: MTYxMjM2Mjk0OTpGUEtleTEucHJpdjoNxFBd/xh72ZrGGl14u00EfhFs1x/TlTk8rc8WqmMcyrXE83mY2obWqP10TzCd1HgXjbRoRO9m5tlUbCJciRlQ72vvGyjtauhZlyc72FVaIythacYbfUr8NJyxKnP21ivO9sBTVNfd3gg7UiMDYrQ+AdI3UDpNvn4t2Nxk6tIhvCx4mBbRurORqWBDD96Xs1mY2aSM6/rHm9Jh6ltJUxn2LxUR9Q/0m7MCqY4PWGSfUkG2y08KcWLAcBjVzPcZK5A23WL7Ja9xzvgq0l7bnvBWNsHFmaVT96tNRfJvD2ulEhmUya1EureX7p6wSAt1ykCp0VXhRNILeN0B+gFBfQUl
X-Scanned-By: MailControl 44278.2100 (www.mailcontrol.com) on 10.68.0.122
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,
SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

I don't know anything about python but want to use cygwin's
python from nodejs with npm-gyp. The npm-gyp module is trying to
find the python executable path from sys.executable and fails.
While investigating this I found this to me quite inconsistent
behavior:

cygwin> /bin/python3.6m.exe -c 'import sys; print(sys.executable);'
/bin/python3.6m

cygwin> python3.6m -c 'import sys; print(sys.executable);'
/usr/bin/python3.6m

cygwin> python3.6 -c 'import sys; print(sys.executable);'
/usr/bin/python3.6

cygwin> python3.6m.exe -c 'import sys; print(sys.executable);'
/usr/bin/python3.6m


cmd> c:/MyStuff/NCygwin64/bin/python3.6m.exe -c 'import sys; print(sys.executable);'
/usr/bin/python3.6m

cmd> rem add cygwin path to Windows:
cmd> path %PATH%;c:\MYSTUFF\ncygwin64\bin

cmd> python3.6m.exe -c 'import sys; print(sys.executable);'
/c/MYSTUFF/ncygwin64/bin/python3.6m

With CMD I'll never get an executable that actually works from cmd.
Is this expected? Is there a way around to make this work?
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019