Skip to content

Commit

Permalink
Exclude importlib_resources and automatically copy over the compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSpen210 committed Feb 21, 2021
1 parent 1d3a00b commit fb97d06
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/BEE2.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys
from pathlib import Path
import srctools
import contextlib
Expand Down Expand Up @@ -128,7 +129,7 @@ EXCLUDES = [
'idlelib.tabbedpages',
'idlelib.textView',

'numpy', # PIL.ImageFilter imports, we don't need NumPy!
'numpy', # PIL.ImageFilter imports, we don't need NumPy!

'bz2', # We aren't using this compression format (shutil, zipfile etc handle ImportError)..

Expand All @@ -145,6 +146,10 @@ EXCLUDES = [
'argparse',
]

if sys.version_info >= (3, 7):
# Only needed on 3.6, it's in the stdlib thereafter.
EXCLUDES += ['importlib_resources']

bee_version = input('BEE2 Version (x.y.z): ')

# Write this to the temp folder, so it's picked up and included.
Expand All @@ -165,6 +170,8 @@ for snd in os.listdir('../sounds/'):
continue
data_files.append(('../sounds/' + snd, 'sounds'))

# Include the compiler.
data_files.append(('../compiler/', 'compiler'))

# Finally, run the PyInstaller analysis process.

Expand Down

0 comments on commit fb97d06

Please # to comment.