Commissioning
Installing Python packages
82
Hans Turck GmbH & Co. KG | T +49 208 4952-0 | F +49 208 4952-264 | [email protected] | www.turck.com
The sh.make and sh.in files are created automatically.
If known, enter the key of the package as an SH_MD5 parameter in the sh.make file.
Set the SH_CONF_TOOL parameter in the sh.make file to the appropriate tool (in this
case: Python 3).
SH_CONF_TOOL :=python3
If a Python module has a separate subfolder: Create the subfolder in the target directory
(in this case not required):
@$(call install_copy, module, 0, 0, 0755, $(PYTHON3_SITEPACK-
AGES)/foldername)
In the #Target-Install area, specify the installation location of the Python module in the
target system (Example: sh module):
@for file in `find $(SH_PKGDIR)/usr/lib/python$(PYTHON3_MA-
JORMINOR)/site-packages \
! -type d ! -name "*.py" -printf "%P\n"`; do \
$(call install_copy, sh, 0, 0, 0644, -, \
/usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/$
$file); \
done
Dependencies can be entered in the sh.in file. Python 3 must be available in the following
example in order to install Python modules. The “setuptools” module must be available on the
host system.
Enter dependencies as follow:
## SECTION=python3
config PYTHON_SH
tristate
select PYTHON3 # Python 3 must be installed
select HOST_PYTHON3_SETUPTOOLS # Setuptools must be in-
stalled on the host
prompt "sh"
help
FIXME
Compile.
Содержание 100000897
Страница 1: ...Your Global Automation Partner Instructions for Use TN UHF LNX UHF Reader...
Страница 2: ...2 Hans Turck GmbH Co KG T 49 208 4952 0 F 49 208 4952 264 more turck com www turck com...
Страница 19: ...V02 00 2021 05 19 Right click the Ethernet adapter Start the Topology scan Fig 16 Starting the Topology scan...
Страница 69: ...V02 00 2021 05 69 fclose fh else printf failed on writing n return 1...
Страница 75: ...V02 00 2021 05 75 else printf failed on writing n return 1 return EXIT_SUCCESS...
Страница 91: ...V02 00 2021 05 91 Restart the device to complete the update Click Reboot Fig 65 Restarting the device...
Страница 93: ...V02 00 2021 05 93 Select RS485 RFID and confirm with OK Fig 67 Selecting the RS485 interface...
Страница 97: ...V02 00 2021 05 97 Click the Select BL File button Fig 73 Button selecting a BL file...
Страница 106: ...Over 30 subsidiaries and over 60 representations worldwide www turck com 100003067 2021 05 100003067...