diff --git a/circuitpython_build_tools/build.py b/circuitpython_build_tools/build.py index 06bcfad..72dd593 100644 --- a/circuitpython_build_tools/build.py +++ b/circuitpython_build_tools/build.py @@ -37,7 +37,7 @@ import tempfile IGNORE_PY = ["setup.py", "conf.py", "__init__.py"] -GLOB_PATTERNS = ["*.py", "font5x8.bin"] +GLOB_PATTERNS = ["*.py", "*.bin"] S3_MPY_PREFIX = "https://adafruit-circuit-python.s3.amazonaws.com/bin/mpy-cross" def version_string(path=None, *, valid_semver=False): @@ -283,7 +283,7 @@ def library(library_path, output_directory, package_folder_prefix, _munge_to_temp(full_path, temp_file, library_version) temp_filename = temp_file.name # Windows: close the temp file before it can be read or copied by name - if not mpy_cross or os.stat(full_path).st_size == 0: + if not mpy_cross or os.stat(full_path).st_size == 0 or not full_path.endswith(".py"): output_file = os.path.join(output_directory, filename.relative_to(library_path)) shutil.copyfile(temp_filename, output_file)