ethercat-master 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/.github/workflows/release.yml +16 -6
  2. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/PKG-INFO +1 -1
  3. ethercat_master-0.2.1/ci/aarch64-toolchain.cmake +13 -0
  4. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/ethercat_master/_soem.py +12 -2
  5. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/pyproject.toml +1 -1
  6. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/.gitignore +0 -0
  7. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/AGENTS.md +0 -0
  8. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/CMakeLists.txt +0 -0
  9. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/LICENSE +0 -0
  10. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/README.md +0 -0
  11. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/benchmarks/__init__.py +0 -0
  12. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/benchmarks/common.py +0 -0
  13. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/benchmarks/pdo_loop.py +0 -0
  14. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/benchmarks/thread_isolation_effect.py +0 -0
  15. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/benchmarks/timer_resolution_effect.py +0 -0
  16. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/benchmarks/timing_precision.py +0 -0
  17. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/ci/make_wheel.py +0 -0
  18. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/ci/mingw-toolchain.cmake +0 -0
  19. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/csrc/ecm.c +0 -0
  20. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/docs/images/01-bus-overview.png +0 -0
  21. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/docs/images/02-network-test.png +0 -0
  22. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/docs/images/03-bus-discovery-mixed.png +0 -0
  23. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/docs/web-interface.md +0 -0
  24. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/ethercat_master/__init__.py +0 -0
  25. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/ethercat_master/_backend.py +0 -0
  26. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/ethercat_master/bus.py +0 -0
  27. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/ethercat_master/ethercat_config.json +0 -0
  28. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/ethercat_master/exceptions.py +0 -0
  29. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/ethercat_master/network_test.py +0 -0
  30. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/ethercat_master/pdo.py +0 -0
  31. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/ethercat_master/slave.py +0 -0
  32. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/ethercat_master/webgui/index.html +0 -0
  33. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/ethercat_master/webgui/style.css +0 -0
  34. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/ethercat_master/webserver.py +0 -0
  35. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/examples/beckhoff.py +0 -0
  36. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/examples/discover.py +0 -0
  37. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/examples/mixed_bus.py +0 -0
  38. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/tests/__init__.py +0 -0
  39. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/tests/test_bus.py +0 -0
  40. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/tests/test_pdo.py +0 -0
  41. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/tests/test_slave.py +0 -0
  42. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/.clang-format +0 -0
  43. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/CMakeLists.txt +0 -0
  44. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/CMakePresets.json +0 -0
  45. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/LICENSE.md +0 -0
  46. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/README.md +0 -0
  47. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/cmake/AddENI.cmake +0 -0
  48. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/cmake/Linux.cmake +0 -0
  49. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/cmake/Windows.cmake +0 -0
  50. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/cmake/rt-kernel.cmake +0 -0
  51. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/cmake/tools/FindSphinx.cmake +0 -0
  52. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/cmake/Modules/Platform/rtems.cmake +0 -0
  53. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/cmake/rtems.cmake +0 -0
  54. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/osal/erika/README.md +0 -0
  55. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/osal/erika/osal.c +0 -0
  56. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/osal/erika/osal_defs.h +0 -0
  57. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/osal/intime/osal.c +0 -0
  58. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/osal/intime/osal_defs.h +0 -0
  59. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/osal/macosx/osal.c +0 -0
  60. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/osal/macosx/osal_defs.h +0 -0
  61. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/osal/rtems/osal.c +0 -0
  62. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/osal/rtems/osal_defs.h +0 -0
  63. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/osal/vxworks/osal.c +0 -0
  64. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/osal/vxworks/osal_defs.h +0 -0
  65. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/erika/nicdrv.c +0 -0
  66. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/erika/nicdrv.h +0 -0
  67. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/erika/oshw.c +0 -0
  68. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/erika/oshw.h +0 -0
  69. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/intime/nicdrv.c +0 -0
  70. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/intime/nicdrv.h +0 -0
  71. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/intime/oshw.c +0 -0
  72. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/intime/oshw.h +0 -0
  73. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/macosx/nicdrv.c +0 -0
  74. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/macosx/nicdrv.h +0 -0
  75. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/macosx/oshw.c +0 -0
  76. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/macosx/oshw.h +0 -0
  77. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/rtems/nicdrv.c +0 -0
  78. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/rtems/nicdrv.h +0 -0
  79. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/rtems/oshw.c +0 -0
  80. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/rtems/oshw.h +0 -0
  81. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/vxworks/nicdrv.c +0 -0
  82. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/vxworks/nicdrv.h +0 -0
  83. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/vxworks/oshw.c +0 -0
  84. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/contrib/oshw/vxworks/oshw.h +0 -0
  85. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/include/soem/ec_base.h +0 -0
  86. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/include/soem/ec_coe.h +0 -0
  87. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/include/soem/ec_config.h +0 -0
  88. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/include/soem/ec_dc.h +0 -0
  89. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/include/soem/ec_eoe.h +0 -0
  90. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/include/soem/ec_foe.h +0 -0
  91. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/include/soem/ec_main.h +0 -0
  92. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/include/soem/ec_options.h.in +0 -0
  93. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/include/soem/ec_print.h +0 -0
  94. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/include/soem/ec_soe.h +0 -0
  95. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/include/soem/ec_type.h +0 -0
  96. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/include/soem/soem.h +0 -0
  97. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/osal/linux/osal.c +0 -0
  98. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/osal/linux/osal_defs.h +0 -0
  99. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/osal/osal.h +0 -0
  100. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/osal/rtk/osal.c +0 -0
  101. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/osal/rtk/osal_defs.h +0 -0
  102. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/osal/win32/osal.c +0 -0
  103. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/osal/win32/osal_defs.h +0 -0
  104. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/linux/nicdrv.c +0 -0
  105. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/linux/nicdrv.h +0 -0
  106. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/linux/oshw.c +0 -0
  107. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/linux/oshw.h +0 -0
  108. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/rtk/nicdrv.c +0 -0
  109. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/rtk/nicdrv.h +0 -0
  110. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/rtk/oshw.c +0 -0
  111. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/rtk/oshw.h +0 -0
  112. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/nicdrv.c +0 -0
  113. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/nicdrv.h +0 -0
  114. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/oshw.c +0 -0
  115. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/oshw.h +0 -0
  116. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/Packet32.h +0 -0
  117. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/Win32-Extensions.h +0 -0
  118. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/bittypes.h +0 -0
  119. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/ip6_misc.h +0 -0
  120. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/pcap/bluetooth.h +0 -0
  121. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/pcap/bpf.h +0 -0
  122. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/pcap/namedb.h +0 -0
  123. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/pcap/pcap.h +0 -0
  124. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/pcap/sll.h +0 -0
  125. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/pcap/usb.h +0 -0
  126. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/pcap/vlan.h +0 -0
  127. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/pcap-bpf.h +0 -0
  128. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/pcap-namedb.h +0 -0
  129. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/pcap-stdinc.h +0 -0
  130. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/pcap.h +0 -0
  131. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Include/remote-ext.h +0 -0
  132. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Lib/Packet.lib +0 -0
  133. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Lib/libpacket.a +0 -0
  134. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Lib/libwpcap.a +0 -0
  135. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Lib/wpcap.lib +0 -0
  136. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Lib/x64/Packet.lib +0 -0
  137. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/oshw/win32/wpcap/Lib/x64/wpcap.lib +0 -0
  138. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/scripts/eniconv.py +0 -0
  139. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/soem.spdx +0 -0
  140. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/src/ec_base.c +0 -0
  141. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/src/ec_coe.c +0 -0
  142. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/src/ec_config.c +0 -0
  143. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/src/ec_dc.c +0 -0
  144. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/src/ec_eoe.c +0 -0
  145. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/src/ec_foe.c +0 -0
  146. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/src/ec_main.c +0 -0
  147. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/src/ec_print.c +0 -0
  148. {ethercat_master-0.2.0 → ethercat_master-0.2.1}/third_party/SOEM/src/ec_soe.c +0 -0
@@ -22,7 +22,8 @@ env:
22
22
  LLVM_MINGW_DIR: "llvm-mingw-20261117-ucrt-ubuntu-22.04-x86_64"
23
23
 
24
24
  jobs:
25
- # Compiles libecm.so (host gcc) and libecm.dll (llvm-mingw cross-compile).
25
+ # Compiles libecm.so for x86_64 (host gcc) and aarch64 (gcc-aarch64-linux-gnu
26
+ # cross-compile), plus libecm.dll (llvm-mingw cross-compile).
26
27
  natives:
27
28
  runs-on: ubuntu-latest
28
29
  steps:
@@ -39,11 +40,18 @@ jobs:
39
40
  curl -fsSL "https://github.com/mstorsjo/llvm-mingw/releases/download/${LLVM_MINGW_VERSION}/${LLVM_MINGW_DIR}.tar.xz" | sudo tar -xJ -C /opt
40
41
  echo "/opt/${LLVM_MINGW_DIR}/bin" >> "$GITHUB_PATH"
41
42
 
42
- - name: Build libecm.so (Linux)
43
+ - name: Build libecm.so (Linux x86_64)
43
44
  run: |
44
45
  cmake -B build-linux -G Ninja -DCMAKE_BUILD_TYPE=Release
45
46
  cmake --build build-linux --target ecm
46
- cp build-linux/libecm.so ethercat_master/
47
+ cp build-linux/libecm.so ethercat_master/libecm-linux-x86_64.so
48
+
49
+ - name: Build libecm.so (Linux aarch64 cross-compile)
50
+ run: |
51
+ sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu
52
+ cmake -B build-arm64 -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=ci/aarch64-toolchain.cmake
53
+ cmake --build build-arm64 --target ecm
54
+ cp build-arm64/libecm.so ethercat_master/libecm-linux-aarch64.so
47
55
 
48
56
  - name: Build libecm.dll (Windows cross-compile)
49
57
  run: |
@@ -55,7 +63,8 @@ jobs:
55
63
  with:
56
64
  name: natives
57
65
  path: |
58
- ethercat_master/libecm.so
66
+ ethercat_master/libecm-linux-x86_64.so
67
+ ethercat_master/libecm-linux-aarch64.so
59
68
  ethercat_master/libecm.dll
60
69
  retention-days: 7
61
70
 
@@ -90,8 +99,9 @@ jobs:
90
99
 
91
100
  - run: ruff check ethercat_master tests benchmarks
92
101
 
93
- # One universal wheel: it ships libecm.so + libecm.dll and _soem picks the
94
- # right one per platform. The sdist includes csrc/ + third_party/SOEM.
102
+ # One universal wheel: it ships libecm-linux-{x86_64,aarch64}.so + libecm.dll
103
+ # and _soem picks the right one per platform.machine(). The sdist includes
104
+ # csrc/ + third_party/SOEM.
95
105
  package:
96
106
  runs-on: ubuntu-latest
97
107
  needs: [natives, test]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ethercat-master
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Generic EtherCAT master library built directly on SOEM 2.x — bus management, PDO mapping, slave discovery
5
5
  Keywords: ethercat,soem,fieldbus,motion-control,industrial,automation
6
6
  Author-Email: Henschel Robotics GmbH <info@henschel-robotics.ch>
@@ -0,0 +1,13 @@
1
+ # CMake toolchain file: cross-compile for Linux/aarch64 (e.g. Raspberry Pi)
2
+ # with the distro gcc-aarch64-linux-gnu toolchain.
3
+ # Used by .github/workflows/release.yml; also works locally:
4
+ # sudo apt install gcc-aarch64-linux-gnu
5
+ # cmake -B build-arm64 -DCMAKE_TOOLCHAIN_FILE=ci/aarch64-toolchain.cmake
6
+
7
+ set(CMAKE_SYSTEM_NAME Linux)
8
+ set(CMAKE_SYSTEM_PROCESSOR aarch64)
9
+ set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc)
10
+ set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++)
11
+ set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
12
+ set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
13
+ set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
@@ -2,6 +2,7 @@
2
2
 
3
3
  import ctypes
4
4
  import os
5
+ import platform
5
6
  import sys
6
7
  import threading
7
8
  import warnings
@@ -99,10 +100,19 @@ def _add_npcap_dll_dir():
99
100
  os.add_dll_directory(npcap)
100
101
 
101
102
 
103
+ def _lib_names():
104
+ if sys.platform == "win32":
105
+ return ["ecm.dll", "libecm.dll"]
106
+ if sys.platform == "darwin":
107
+ return ["libecm.dylib"]
108
+ # Wheels ship libecm-linux-<machine>.so; a bare libecm.so comes from
109
+ # local CMake builds (editable installs, sdists).
110
+ return [f"libecm-linux-{platform.machine()}.so", "libecm.so"]
111
+
112
+
102
113
  def _load_library():
103
114
  _add_npcap_dll_dir()
104
- names = {"win32": ["ecm.dll", "libecm.dll"], "darwin": ["libecm.dylib"]}.get(
105
- sys.platform, ["libecm.so"])
115
+ names = _lib_names()
106
116
  here = os.path.dirname(os.path.abspath(__file__))
107
117
  candidates = [os.environ.get("ETHERCAT_MASTER_ECM_LIB")]
108
118
  candidates += [os.path.join(here, n) for n in names]
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
4
4
 
5
5
  [project]
6
6
  name = "ethercat-master"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "Generic EtherCAT master library built directly on SOEM 2.x — bus management, PDO mapping, slave discovery"
9
9
  readme = "README.md"
10
10
  license = "GPL-3.0-or-later"
File without changes