Skip to content

Commit d8c18da

Browse files
committed
remove mpy-cross exclusion for '__init__.py' in packaged modules
1 parent 2d7b358 commit d8c18da

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

circuitpython_build_tools/build.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ def library(library_path, output_directory, mpy_cross=None, example_bundle=False
163163
full_path = os.path.join(library_path, filename)
164164
with tempfile.NamedTemporaryFile() as temp_file:
165165
_munge_to_temp(full_path, temp_file, library_version)
166-
if (not mpy_cross or
167-
os.stat(full_path).st_size == 0 or
168-
filename.endswith("__init__.py")):
166+
if not mpy_cross or os.stat(full_path).st_size == 0:
169167
output_file = os.path.join(output_directory, filename)
170168
shutil.copyfile(temp_file.name, output_file)
171169
else:

0 commit comments

Comments
 (0)