File tree 2 files changed +1
-23
lines changed
2 files changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -288,19 +288,6 @@ def build_FMU(
288
288
# Add information for the Python loader
289
289
zip_fmu .writestr (str (resource .joinpath ("slavemodule.txt" )), module_name )
290
290
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
-
304
291
# Add FMI API wrapping Python class library
305
292
binaries = Path ("binaries" )
306
293
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):
38
38
module_file = "/" .join (("resources" , "slavemodule.txt" ))
39
39
assert module_file in names
40
40
41
- nfiles = 20
41
+ nfiles = 16
42
42
if FmuBuilder .has_binary ():
43
43
assert (
44
44
"/" .join (("binaries" , get_platform (), f"PythonSlave.{ lib_extension } " ))
@@ -47,15 +47,6 @@ def test_zip_content(tmp_path):
47
47
else :
48
48
nfiles -= 1
49
49
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
-
59
50
# Check pythonfmu is embedded
60
51
pkg_folder = Path (pythonfmu .__path__ [0 ])
61
52
for f in pkg_folder .rglob ("*.py" ):
You can’t perform that action at this time.
0 commit comments