Skip to content

Commit 7319276

Browse 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

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

MANIFEST.in

Lines 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

Lines 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)