Skip to content

Commit 4272f42

Browse files
committed
Fix wheel building
1 parent 955d3dc commit 4272f42

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

configure.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@
4747

4848
args = parser.parse_args()
4949

50-
def run(cmd, cwd=os.getcwd()):
51-
env = os.environ.copy()
50+
def run(cmd, cwd=os.getcwd(), env=os.environ.copy()):
5251
print(cmd)
5352
p = subprocess.Popen(cmd, shell=True, env=env, cwd=cwd)
5453
retcode = p.wait()
@@ -91,7 +90,9 @@ def install_python_package_from_source(name, url, vcpkg):
9190
file.write("libraries = gdal\n")
9291
file.write("library-dirs = %s\n" % os.path.abspath(os.path.join(vcpkg, "lib")))
9392

94-
run("venv\\Scripts\\pip install .", cwd=src_dir)
93+
pip_abs = os.path.abspath(os.path.join("venv", "Scripts", "pip.exe"))
94+
95+
run(f"\"{pip_abs}\" install .", cwd=src_dir, env={**os.environ, "GDAL_VERSION": "3.11.1"})
9596

9697
def build():
9798
# Create python virtual env

0 commit comments

Comments
 (0)