11 Star 0 Fork 1

src-openEuler / mingw-wine-gecko

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0005-Bug-1100925-Added-flags-in-virtualenv-to-differencia.patch 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
zhiyi 提交于 2020-10-10 10:18 . Initial version
From 4ba789d827d888bacdaddad129108eb481211e3c Mon Sep 17 00:00:00 2001
From: Nathan Hakkakzadeh <nhakkakzadeh@mozilla.com>
Date: Thu, 2 Jun 2016 13:19:28 -0700
Subject: [PATCH 05/12] Bug 1100925 - Added flags in virtualenv to
differenciate between a native Windows version of Python and a MinGW64
version of Python running in msys2. r=gps
This is going to be necessary in the following commits to ensure that virtualenv has access to native libraries.
MozReview-Commit-ID: FwxOoCWnQMW
--HG--
extra : rebase_source : c4cf829231757b3dc2c5ca821c7248dc3fb0d763
(cherry picked from commit 57e72ee336754d5cabb9f53cb5dfca7f817c6a18)
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
---
python/virtualenv/virtualenv.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/python/virtualenv/virtualenv.py b/python/virtualenv/virtualenv.py
index 13146f66eaaf..a1854ab36465 100755
--- a/python/virtualenv/virtualenv.py
+++ b/python/virtualenv/virtualenv.py
@@ -53,8 +53,9 @@ py_version = 'python%s.%s' % (sys.version_info[0], sys.version_info[1])
is_jython = sys.platform.startswith('java')
is_pypy = hasattr(sys, 'pypy_version_info')
-is_win = (sys.platform == 'win32')
+is_win = (sys.platform == 'win32' and os.sep == '\\')
is_cygwin = (sys.platform == 'cygwin')
+is_msys2 = (sys.platform == 'win32' and os.sep == '/')
is_darwin = (sys.platform == 'darwin')
abiflags = getattr(sys, 'abiflags', '')
--
2.24.1
1
https://gitee.com/src-openeuler/mingw-wine-gecko.git
git@gitee.com:src-openeuler/mingw-wine-gecko.git
src-openeuler
mingw-wine-gecko
mingw-wine-gecko
master

搜索帮助