We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4a0d4ce + 02648ce commit 9def6a5Copy full SHA for 9def6a5
setup.py
@@ -118,8 +118,11 @@ def main():
118
# In Windows, in python/X.Y/<arch>/; in Linux, in just python/X.Y/.
119
# Naming conventions vary so widely between versions and OSes
120
# 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/
122
[
- r"python/cv2/python-%s/cv2.*"
123
+ r"python/cv2/python-%s*/cv2.*"
124
+ % (sys.version_info[0]) if 'CMAKE_ARGS' in os.environ and "-DPYTHON3_LIMITED_API=ON" in os.environ['CMAKE_ARGS']
125
+ else r"python/cv2/python-%s.*/cv2.*"
126
% (sys.version_info[0])
127
]
128
+
0 commit comments