Skip to content

Commit

Permalink
[fix][setup] remove un-need files to avoid extreme long path in win (P…
Browse files Browse the repository at this point in the history
…addlePaddle#111)

* [fix][setup] rm un-need files to avoid extreme long path in win

* [fix][setup] rm un-need files to avoid extreme long path in win
  • Loading branch information
DefTruth authored Aug 14, 2022
1 parent 8ea90e6 commit 85bd24a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,14 @@ def run(self):

all_files = get_all_files(os.path.join(PACKAGE_NAME, "libs"))
for f in all_files:
# remove un-need ocv samples files to avoid too long file path
# in windows which can make building process failed.
if f.find(".vcxproj.") > 0:
continue
if f.find("opencv") > 0 and (f.find("samples") > 0 or
f.find("java") > 0 or
f.find(".png") > 0 or f.find(".jpg")):
continue
package_data[PACKAGE_NAME].append(os.path.relpath(f, PACKAGE_NAME))

setuptools.setup(
Expand Down

0 comments on commit 85bd24a

Please sign in to comment.