Skip to content

Commit 6140e85

Browse files
committed
setup.py: support patched sources, allow custom package name
1 parent 255564a commit 6140e85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def main():
4848
"\\", "/"
4949
)
5050

51-
if os.path.exists(".git"):
51+
if not bool(os.environ.get('OPENCV_PYTHON_SKIP_GIT_COMMANDS', False)) and os.path.exists(".git"):
5252
import pip._internal.vcs.git as git
5353

5454
g = git.Git() # NOTE: pip API's are internal, this has to be refactored
@@ -95,6 +95,8 @@ def main():
9595
if build_rolling:
9696
package_name += "-rolling"
9797

98+
package_name = os.environ.get('OPENCV_PYTHON_PACKAGE_NAME', package_name)
99+
98100
long_description = io.open("README.md", encoding="utf-8").read()
99101

100102
packages = ["cv2", "cv2.data"]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy