Join the SIG TFX-Addons community and help make TFX even better!

tfx.components.util.udf_utils.package_user_module_file

Package the given user module file into a Python Wheel package.

instance_name Name of the component instance, for creating a unique wheel package name.
module_path Path to the module file to be packaged.
pipeline_root Text

dist_file_path Path to the generated wheel file.
user_module_path Path for referencing the user module when stored as the _MODULE_PATH_KEY execution property. Format should be treated as opaque by the user.

RuntimeError When wheel building fails.