Skip to content

Commit b04c44a

Browse files
committed
Smoketests: Try fix build extension
1 parent d1ce6fe commit b04c44a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mingw_smoketests.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def test_platform_things(self):
255255
if not sysconfig.is_python_build():
256256
op = subprocess.check_output(
257257
[
258-
os.path.join(tmp, "bin", "python.exe"),
258+
os.path.join(tmp, "bin", 'python' + abiflags + '.exe'),
259259
"-c",
260260
"import sysconfig; print(sysconfig.get_config_var('LIBDIR'))"
261261
],
@@ -294,6 +294,10 @@ def test_c_ext_build(self):
294294
import venv
295295
from pathlib import Path
296296

297+
if sysconfig.is_python_build():
298+
pydir = os.path.dirname(sys._base_executable)
299+
os.environ["LDFLAGS"] = "-L " + pydir
300+
297301
with tempfile.TemporaryDirectory() as tmppro:
298302
builder = venv.EnvBuilder(with_pip=True)
299303
builder.create(tmppro)

0 commit comments

Comments
 (0)