Skip to content

Commit

Permalink
Remove duplicated modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
vasole committed Oct 25, 2023
1 parent b37cf33 commit b2b4627
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package/pyinstaller/pyinstaller.spec
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,12 @@ if sys.platform.startswith("darwin"):
source = source[:-1]
print("deleting %s" % source)
shutil.rmtree(source)
# remove the duplicated _internal directory
internal_modules_dir = os.path.join( \
DISTDIR, "PyMca%s.app" % version, "Contents", "MacOS", "_internal")
if os.path.exists(internal_modules_dir):
print("deleting %s" % internal_modules_dir)
shutil.rmtree(internal_modules_dir)

# Pack the application
destination = os.path.join(SPECPATH, "artifacts")
Expand Down

0 comments on commit b2b4627

Please sign in to comment.