python-pip/allow-stripping-given-prefix-from-wheel-RECORD-files.patch

32 lines
1.0 KiB
Diff
Raw Normal View History

2020-08-25 11:47:20 +08:00
From e2126b5d4efdbddb15a3c354110055f40d78f4cc Mon Sep 17 00:00:00 2001
From: wwx930846 <wuchaochao4@huawei.com>
Date: Mon, 24 Aug 2020 22:01:50 +0800
Subject: [PATCH] allow-stripping-given-prefix-from-wheel-RECORD-files
---
src/pip/_internal/commands/install.py | 8 ++++++++
src/pip/_internal/req/req_install.py | 4 +++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/pip/_internal/commands/install.py b/src/pip/_internal/commands/install.py
index 8c2c32f..674d30c 100644
--- a/src/pip/_internal/commands/install.py
+++ b/src/pip/_internal/commands/install.py
2021-12-20 14:35:11 +08:00
@@ -134,6 +134,13 @@ class InstallCommand(RequirementCommand):
"folders are placed"
),
)
2020-08-25 11:47:20 +08:00
+ self.cmd_opts.add_option(
2021-12-20 14:35:11 +08:00
+ '--strip-file-prefix',
+ dest='strip_file_prefix',
+ metavar='prefix',
+ default=None,
+ help="Strip given prefix from script paths in wheel RECORD."
+ )
2020-08-25 11:47:20 +08:00
2021-12-20 14:35:11 +08:00
self.cmd_opts.add_option(cmdoptions.src())
2020-08-25 11:47:20 +08:00
2021-12-20 14:35:11 +08:00
--
2020-08-25 11:47:20 +08:00
2.23.0