File tree Expand file tree Collapse file tree 2 files changed +1
-23
lines changed
Expand file tree Collapse file tree 2 files changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -288,19 +288,6 @@ def build_FMU(
288288 # Add information for the Python loader
289289 zip_fmu .writestr (str (resource .joinpath ("slavemodule.txt" )), module_name )
290290
291- # Add FMI API wrapping Python class source
292- source_node = SubElement (type_node , "SourceFiles" )
293- sources = Path ("sources" )
294- src = HERE / "pythonfmu-export"
295- for f in itertools .chain (
296- src .rglob ("*.hpp" ), src .rglob ("*.cpp" ), src .rglob ("CMakeLists.txt" )
297- ):
298- relative_f = f .relative_to (src )
299- SubElement (
300- source_node , "File" , attrib = {"name" : relative_f .as_posix ()}
301- )
302- zip_fmu .write (f , arcname = (sources / relative_f ))
303-
304291 # Add FMI API wrapping Python class library
305292 binaries = Path ("binaries" )
306293 src_binaries = HERE / "resources" / "binaries"
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def test_zip_content(tmp_path):
3838 module_file = "/" .join (("resources" , "slavemodule.txt" ))
3939 assert module_file in names
4040
41- nfiles = 20
41+ nfiles = 16
4242 if FmuBuilder .has_binary ():
4343 assert (
4444 "/" .join (("binaries" , get_platform (), f"PythonSlave.{ lib_extension } " ))
@@ -47,15 +47,6 @@ def test_zip_content(tmp_path):
4747 else :
4848 nfiles -= 1
4949
50- # Check sources
51- src_folder = Path (pythonfmu .__path__ [0 ]) / "pythonfmu-export"
52- for f in itertools .chain (
53- src_folder .rglob ("*.hpp" ),
54- src_folder .rglob ("*.cpp" ),
55- src_folder .rglob ("CMakeLists.txt" ),
56- ):
57- assert "/" .join (("sources" , f .relative_to (src_folder ).as_posix ())) in names
58-
5950 # Check pythonfmu is embedded
6051 pkg_folder = Path (pythonfmu .__path__ [0 ])
6152 for f in pkg_folder .rglob ("*.py" ):
You can’t perform that action at this time.
0 commit comments