LibraryBuilder: Difference between revisions

From SweepMe! Wiki
Jump to navigation Jump to search
No edit summary
(Replaced content with "#REDIRECT External_libraries_and_dependencies#Library_Builder")
Tag: Replaced
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The LibraryBuilder is a tool which helps you to collect all missing python packages that are missing in the main program.
#REDIRECT [[External_libraries_and_dependencies#Library_Builder]]
Thus, you can import them in your Device Class.
 
An example is given in the Device Class called [https://sweep-me.net/deviceclass.php?id=11 ImportModules]. Install it from the webpage, use the DeviceClassManager or check your DeviceClasses folder if it is already there.
 
Steps to get it working:
 
# Open build_library.py and set the path where to find your SweepMe! installation. The script can now check, which packages already exist.
# Open required_modules.py and type in "import <your-module>". Nothing else is needed. Import all packages you need for your application
# Run build_library.py  - Please make sure that you use the same python version than used for SweepMe!
# The output will be found in a newly created folder called 'libs'. Please make sure that you have all licenses in order to use or to distribute these files. We recommend to add a folder including all licenses files.
# Copy the folder 'libs' into your Device Class folder
# Check the Device Class 'ImportModules' to see how to import packages from the folder 'libs'

Latest revision as of 14:41, 11 June 2020