Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6140e85

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎setup.py

Copy file name to clipboard
100644100755
Expand all lines: setup.py
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.