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 7319276

Browse filesBrowse files
authored
Merge pull request opencv#577 from asenyaev/asen/fix_build_from_source
Fixed a build from the source
2 parents 69a9a93 + 9a7af2a commit 7319276
Copy full SHA for 7319276

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

+2
-1
lines changed

‎MANIFEST.in

Copy file name to clipboardExpand all lines: MANIFEST.in
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ recursive-include docker *
99
recursive-include opencv *
1010
recursive-include opencv_contrib *
1111
recursive-include patches *
12+
recursive-include scripts *.py

‎setup.py

Copy file name to clipboardExpand all lines: setup.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def _classify_installed_files_override(
378378
print("Copying files from CMake output")
379379

380380
# add lines from the old __init__.py file to the config file
381-
with open('scripts/__init__.py', 'r') as custom_init:
381+
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'scripts', '__init__.py'), 'r') as custom_init:
382382
custom_init_data = custom_init.read()
383383
with open('%spython/cv2/config-%s.%s.py'
384384
% (cmake_install_dir, sys.version_info[0], sys.version_info[1]), 'w') as opencv_init_config:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.