Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit02648ce

Browse files
zhanwenchenasmorkalov
authored andcommitted
Fix Python Source RelPath for PY_LIMITED_API=OFF
1 parent43c1105 commit02648ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,11 @@ def main():
118118
# In Windows, in python/X.Y/<arch>/; in Linux, in just python/X.Y/.
119119
# Naming conventions vary so widely between versions and OSes
120120
# had to give up on checking them.
121+
# If not specifying PY_LIMITED_API, the Python sources go under python/cv2/python-3.MINOR_VERSION/ instead of python/cv2/python-3/
121122
[
122-
r"python/cv2/python-%s/cv2.*"
123+
r"python/cv2/python-%s*/cv2.*"
124+
% (sys.version_info[0])if'CMAKE_ARGS'inos.environand"-DPYTHON3_LIMITED_API=ON"inos.environ['CMAKE_ARGS']
125+
elser"python/cv2/python-%s.*/cv2.*"
123126
% (sys.version_info[0])
124127
]
125128
+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp