Skip to content

Commit 073de8b

Browse files
dhalberttannewt
authored andcommitted
include only relative library pathname in .mpy file
1 parent 0ebd430 commit 073de8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

circuitpython_build_tools/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ def library(library_path, output_directory, mpy_cross=None):
9696
output_file = os.path.join(output_directory,
9797
filename.replace(".py", new_extension))
9898
if mpy_cross:
99+
99100
mpy_success = subprocess.call([mpy_cross,
100101
"-o", output_file,
102+
"-s", filename,
101103
full_path])
102104
if mpy_success != 0:
103105
raise RuntimeError("mpy-cross failed on", full_path)
@@ -116,6 +118,7 @@ def library(library_path, output_directory, mpy_cross=None):
116118
filename.replace(".py", new_extension))
117119
mpy_success = subprocess.call([mpy_cross,
118120
"-o", output_file,
121+
"-s", filename,
119122
full_path])
120123
if mpy_success != 0:
121124
raise RuntimeError("mpy-cross failed on", full_path)

0 commit comments

Comments
 (0)