Creating an Unsigned Package by Using the Python Packaging Tool
If you do not include the language python statement, you cannot execute unsigned Python scripts on a device running Junos OS.
To create an unsigned JET Python application package:
- Write the script
setup.pyfile is a Python file that usually tells you that the module you are about to install has been packaged and distributed with distutils, which is the standard way to distribute Python modules.
- Use the
sdistcommand to create a source distribution and to create a tar gzip package file.% python setup.py sdist –formats=gztar