Skip to content

Commit

Permalink
Fixed a build from the source
Browse files Browse the repository at this point in the history
  • Loading branch information
asenyaev committed Nov 1, 2021
1 parent 84bfd76 commit 810ca4e
Show file tree
Hide file tree
Showing 2 changed files with 3 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
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -378,7 +378,8 @@ 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:

This comment has been minimized.

Copy link
@noviaputri214

noviaputri214 Oct 20, 2023

with open ('scripts/init.py', 'r') as custom_init file:

with open('%s/scripts/__init__.py'
% os.path.split(os.path.abspath(__file__))[0], '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 810ca4e

Please sign in to comment.