Build a Snowpark project

The snow snowpark build command builds the Snowpark project as one or more .zip archive files that can be used by the deploy command. The cp,,amd builds the archives using only the src directory specified in the project file.

snow snowpark build
Build done. Artefact path: /.../app.zip
Copy

Additional options:

  • --allow-shared-libraries: Allows shared (.so/.dll) libraries, when using packages installed through pip.

  • --ignore-anaconda: Does not lookup packages on Snowflake Anaconda channel.

  • --index-url: Specifies the base URL of the Python Package Index to use for package lookup. This URL should point to a repository compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format.

  • --skip-version-check: Skips comparing versions of dependencies between requirements and Anaconda.

  • --project [-p]: Specifies the path where the Snowpark project resides. Defaults to the current working directory.

Note

The following options have been deprecated and will be removed when Snowflake releases Snowflake CLI 3.0.0.

  • --pypi-download: Downloads non-Anaconda dependencies from PyPi (and adds them to the .zip archive).

  • --check-anaconda-for-pypi-deps [-a]: Checks whether any of the missing Anaconda packages dependencies can be imported directly from Anaconda.

  • --package-native-libraries yes/no/ask: Whether to allow native libraries when using PyPi packages. Default: ask.