Skip to content

Commit 7a6cc5c

Browse files
committed
Add python symbolic link to wheel tasks
1 parent 64ca02a commit 7a6cc5c

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

metadata-ingestion-modules/airflow-plugin/build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ task cleanPythonCache(type: Exec) {
110110
task buildWheel(type: Exec, dependsOn: [environmentSetup]) {
111111
commandLine 'bash', '-c',
112112
"source ${venv_name}/bin/activate && set -x && " +
113-
'uv pip install build && RELEASE_VERSION="\${RELEASE_VERSION:-0.0.0.dev1}" RELEASE_SKIP_INSTALL=1 RELEASE_SKIP_UPLOAD=1 ./scripts/release.sh'
113+
"uv pip install -p ${venv_name}/bin/${python_executable} build && " +
114+
'RELEASE_VERSION="\${RELEASE_VERSION:-0.0.0.dev1}" RELEASE_SKIP_INSTALL=1 RELEASE_SKIP_UPLOAD=1 ./scripts/release.sh'
114115
}
115116

116117
build.dependsOn install

metadata-ingestion-modules/dagster-plugin/build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ task testQuick(type: Exec, dependsOn: installDevTest) {
9191

9292
task buildWheel(type: Exec, dependsOn: [environmentSetup]) {
9393
commandLine 'bash', '-c', "source ${venv_name}/bin/activate && " +
94-
'uv pip install build && RELEASE_VERSION="\${RELEASE_VERSION:-0.0.0.dev1}" RELEASE_SKIP_INSTALL=1 RELEASE_SKIP_UPLOAD=1 ./scripts/release.sh'
94+
"uv pip install -p ${venv_name}/bin/${python_executable} build && " +
95+
'RELEASE_VERSION="\${RELEASE_VERSION:-0.0.0.dev1}" RELEASE_SKIP_INSTALL=1 RELEASE_SKIP_UPLOAD=1 ./scripts/release.sh'
9596
}
9697

9798
task cleanPythonCache(type: Exec) {

metadata-ingestion-modules/prefect-plugin/build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ task testFull(type: Exec, dependsOn: [testQuick, installDevTest]) {
9797

9898
task buildWheel(type: Exec, dependsOn: [environmentSetup]) {
9999
commandLine 'bash', '-c', "source ${venv_name}/bin/activate && " +
100-
'uv pip install build && RELEASE_VERSION="\${RELEASE_VERSION:-0.0.0.dev1}" RELEASE_SKIP_INSTALL=1 RELEASE_SKIP_UPLOAD=1 ./scripts/release.sh'
100+
"uv pip install -p ${venv_name}/bin/${python_executable} build && " +
101+
'RELEASE_VERSION="\${RELEASE_VERSION:-0.0.0.dev1}" RELEASE_SKIP_INSTALL=1 RELEASE_SKIP_UPLOAD=1 ./scripts/release.sh'
101102
}
102103

103104
task cleanPythonCache(type: Exec) {

metadata-ingestion/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ task environmentSetup(type: Exec, dependsOn: checkPythonVersion) {
2424
outputs.file(sentinel_file)
2525
commandLine 'bash', '-c',
2626
"${python_executable} -m venv ${venv_name} && set -x && " +
27-
"${venv_name}/bin/${python_executable} -m pip install --upgrade uv && " +
27+
"${venv_name}/bin/python -m pip install --upgrade uv && " +
2828
"touch ${sentinel_file}"
2929
}
3030

@@ -62,7 +62,7 @@ task customPackageGenerate(type: Exec, dependsOn: [environmentSetup, installPack
6262
def package_version = project.findProperty('package_version')
6363
commandLine 'bash', '-c',
6464
"source ${venv_name}/bin/activate && set -x && " +
65-
"uv pip install build && " +
65+
"uv pip install -p ${venv_name}/bin/${python_executable} build && " +
6666
"./scripts/custom_package_codegen.sh '${package_name}' '${package_version}'"
6767
}
6868

0 commit comments

Comments
 (0)