Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add currently selected python environment to path for wheel builds #1159

Merged
merged 4 commits into from
Mar 26, 2024

Conversation

kartikgupta-db
Copy link
Contributor

Changes

  • Deploying jobs with wheels fails because we are not propagating the selected virtual env to bundle commands.
  • This PR fixes that by adding the path to virtual environment python binary to PATH env var for bundle deploy.

Tests

@@ -392,6 +394,7 @@ export class CliWrapper {
target: string,
authProvider: AuthProvider,
workspaceFolder: Uri,
pythonExtension: MsPythonExtensionWrapper,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the problem with the deploy only? Should we propagate the correct PATH to other bundle commands (like run)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it is deploy only for now.

Co-authored-by: Ilia Babanov <ilia.babanov@databricks.com>
@kartikgupta-db kartikgupta-db merged commit 2128013 into bundle-integ Mar 26, 2024
3 checks passed
@kartikgupta-db kartikgupta-db deleted the set-python-in-path branch March 26, 2024 12:49
@github-actions github-actions bot mentioned this pull request Apr 3, 2024
kartikgupta-db added a commit that referenced this pull request Apr 3, 2024
## packages/databricks-vscode
##  (2024-04-03)

* Add currently selected python environment to path for wheel builds
(#1159)
([2128013](2128013)),
closes
[#1159](#1159)
* Add extension name to the private preview terms and conditions popup
(#1144)
([5370f04](5370f04)),
closes
[#1144](#1144)
* Bump databricks cli to v0.216.0 (#1166)
([fdd0a17](fdd0a17)),
closes
[#1166](#1166)
* Fixes to initialisation UI (#1160)
([77267f4](77267f4)),
closes
[#1160](#1160)
* Ignore stderr for validate and summary commands (#1151)
([3780ec4](3780ec4)),
closes
[#1151](#1151)
* Rename some things (#1146)
([450b002](450b002)),
closes
[#1146](#1146)
* Use packaged CLI if a cli path is not specified in .databrickscfg
profile (#1150)
([2cff68e](2cff68e)),
closes
[#1150](#1150)



## packages/databricks-vscode-types
##  (2024-04-03)

---------

Co-authored-by: releasebot <noreply@github.com>
Co-authored-by: Kartik Gupta <88345179+kartikgupta-db@users.noreply.github.com>
Co-authored-by: kartikgupta-db <kartik.gupta@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants