<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How are .whl files executed for Python wheel tasks? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-are-whl-files-executed-for-python-wheel-tasks/m-p/111394#M43874</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;We package a Poetry managed project into a .whl and run it as a Python wheel task. Naturally, many of the dependencies referenced by the .whl file are already present on the Databricks cluster. Is this detected by the task setup (in its virtual env I suppose) and those dependencies are not pulled from a repo or will the dependencies be re-installed regardless? If so, is there a way to avoid this extra overhead?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;David&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 17:11:45 GMT</pubDate>
    <dc:creator>the_dude</dc:creator>
    <dc:date>2025-02-27T17:11:45Z</dc:date>
    <item>
      <title>How are .whl files executed for Python wheel tasks?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-are-whl-files-executed-for-python-wheel-tasks/m-p/111394#M43874</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;We package a Poetry managed project into a .whl and run it as a Python wheel task. Naturally, many of the dependencies referenced by the .whl file are already present on the Databricks cluster. Is this detected by the task setup (in its virtual env I suppose) and those dependencies are not pulled from a repo or will the dependencies be re-installed regardless? If so, is there a way to avoid this extra overhead?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 17:11:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-are-whl-files-executed-for-python-wheel-tasks/m-p/111394#M43874</guid>
      <dc:creator>the_dude</dc:creator>
      <dc:date>2025-02-27T17:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: How are .whl files executed for Python wheel tasks?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-are-whl-files-executed-for-python-wheel-tasks/m-p/111467#M43901</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I can't speak exactly to how Poetry handles the dependency resolution of libraries that are already installed, or how that interacts with the Databricks runtime. However, I can offer you some advice on how my team handles this situtation.&lt;BR /&gt;&lt;BR /&gt;It's been very common for to require libraries available on the Databricks runtime in our local tests, or in a wheel that we publish elsewhere besides Databricks.&lt;BR /&gt;&lt;BR /&gt;We've handled this by specifying any libraries provided by the Databricks runtime as optional/dev dependency groups in our pyproject.toml. This lets us test them locally or in CI, and then not attempt to install them when we deploy our wheels to Databricks workflows.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 14:59:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-are-whl-files-executed-for-python-wheel-tasks/m-p/111467#M43901</guid>
      <dc:creator>Nik_Vanderhoof</dc:creator>
      <dc:date>2025-02-28T14:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: How are .whl files executed for Python wheel tasks?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-are-whl-files-executed-for-python-wheel-tasks/m-p/111595#M43943</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/146987"&gt;@Nik_Vanderhoof&lt;/a&gt;&amp;nbsp;thank you for this suggestion.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 14:44:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-are-whl-files-executed-for-python-wheel-tasks/m-p/111595#M43943</guid>
      <dc:creator>the_dude</dc:creator>
      <dc:date>2025-03-03T14:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: How are .whl files executed for Python wheel tasks?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-are-whl-files-executed-for-python-wheel-tasks/m-p/111599#M43944</link>
      <description>&lt;P&gt;You're welcome!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 14:54:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-are-whl-files-executed-for-python-wheel-tasks/m-p/111599#M43944</guid>
      <dc:creator>Nik_Vanderhoof</dc:creator>
      <dc:date>2025-03-03T14:54:58Z</dc:date>
    </item>
  </channel>
</rss>

