Skip to content

Commit

Permalink
Merge pull request #577 from asenyaev/asen/fix_build_from_source
Browse files Browse the repository at this point in the history
Fixed a build from the source
  • Loading branch information
asenyaev committed Nov 10, 2021
2 parents 69a9a93 + 9a7af2a commit 7319276
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions MANIFEST.in
Expand Up @@ -9,3 +9,4 @@ recursive-include docker *
recursive-include opencv *
recursive-include opencv_contrib *
recursive-include patches *
recursive-include scripts *.py
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -378,7 +378,7 @@ def _classify_installed_files_override(
print("Copying files from CMake output")

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

0 comments on commit 7319276

Please sign in to comment.