You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To follow these PyInstaller packaging steps, you must have enabled cloud build when moving through the module generator prompts.
549
-
If you did not, you will need to manually create a <file>build.sh</file> entrypoint script.
550
-
{{% /alert %}}
551
547
552
-
From within the <file>hello-world</file> directory, create a virtual Python environment with the necessary packages and then build an executable by running the setup and build scripts:
From within the module directory, create a virtual Python environment with the necessary packages and then build an executable by running the setup and build scripts:
Run the `viam module upload` CLI command to upload the module to the registry, replacing `any` with one or more of `linux/any` or `darwin/any` if your module requires Linux OS-level support or macOS OS-level support, respectively.
837
891
If your module does not require OS-level support (such as platform-specific dependencies), you can run the following command exactly:
Copy file name to clipboardexpand all lines: docs/operate/get-started/other-hardware/hello-world-module.md
+6
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,12 @@ If you prefer the simpler path, skip the sensor sections in the steps below.
179
179
180
180
The easiest way to generate the files for your module is to use the [Viam CLI](/dev/tools/cli/).
181
181
182
+
{{% alert title="Note" color="note" %}}
183
+
The steps below suggest that you disable cloud build when generating your stub files, for simplicity of local testing.
184
+
If you plan to publish your module to the Viam registry, we recommend enabling cloud build, and then following the testing, packaging and uploading steps in [Integrate other hardware](/operate/get-started/other-hardware/) once you are done writing your API implementation in this guide.
185
+
Enabling cloud build will set up your module for a more automated deployment process if you plan to use your module for more than just learning.
186
+
{{% /alert %}}
187
+
182
188
### Generate the camera files
183
189
184
190
The CLI module generator generates the files for one modular resource at a time.
0 commit comments