where saving the wheel package?

jeremy98
Honored Contributor

Hi community,

We have deployed the wheel package internally in our bundle repository: 

artifacts:
  rnc_lib:
    type: whl
    build: poetry build
    path: .

# For passing wheel package to workspace
sync:
  include:
    - ./dist/*.whl

The problem is that if we want to install packages in each notebook scope file, for now, we do it one by one:

%pip install sentry-sdk=2.19.0

but, this is not feasible, so which is the best practice in this case? Deploying the wheel in a Workspace/Shared location? Or?

Renu_
Valued Contributor II

Hi @jeremy98 

You can upload the wheel to a shared workspace location and configure it for cluster-level installation by attaching it as a library.

Or you can also automate the process by adding the wheel to the libraries section of your databricks.yml task configuration.