We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3276dc6 commit a38f3d1Copy full SHA for a38f3d1
setup.py
@@ -124,8 +124,11 @@ def main():
124
# In Windows, in python/X.Y/<arch>/; in Linux, in just python/X.Y/.
125
# Naming conventions vary so widely between versions and OSes
126
# had to give up on checking them.
127
+ # If not specifying PY_LIMITED_API, the Python sources go under python/cv2/python-3.MINOR_VERSION/ instead of python/cv2/python-3/
128
[
- r"python/cv2/python-%s/cv2.*"
129
+ r"python/cv2/python-%s*/cv2.*"
130
+ % (sys.version_info[0]) if 'CMAKE_ARGS' in os.environ and "-DPYTHON3_LIMITED_API=ON" in os.environ['CMAKE_ARGS']
131
+ else r"python/cv2/python-%s.*/cv2.*"
132
% (sys.version_info[0])
133
]
134
+
0 commit comments