Skip to content

Commit c0f902f

Browse files
author
Zoran Simic
committed
Merge branch 'main' into solvingj/add_url_config
2 parents ebbf67a + 0766fd8 commit c0f902f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/portable_python/cpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from runez.pyenv import Version
99

1010
from portable_python import LOG, patch_file, patch_folder, PPG, PythonBuilder
11-
from portable_python.external.tkinter import TkInter
1211
from portable_python.external.xcpython import Bdb, Bzip2, Gdbm, LibFFI, Openssl, Readline, Sqlite, Uuid, Xz, Zlib
12+
from portable_python.external.xtkinter import TkInter
1313
from portable_python.inspector import LibAutoCorrect, PythonInspector
1414

1515
# https://github.com/docker-library/python/issues/160
@@ -232,7 +232,7 @@ def _finalize(self):
232232

233233
self.run_python(cmd)
234234

235-
self.run_python("-mpip", "install", *runez.flattened(additional))
235+
self.run_python("-mpip", "install", "--no-cache-dir", "--upgrade", *runez.flattened(additional))
236236

237237
runez.abort_if(not runez.DRYRUN and not self.bin_python, f"Can't find bin/python in {self.bin_folder}")
238238
PPG.config.ensure_main_file_symlinks(self)

tests/test_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def test_config(cli):
1111

1212
cli.run("-ntmacos-arm64", "-c", cli.tests_path("sample-config1.yml"), "build", "3.9.7", "-mnone")
1313
assert cli.succeeded
14-
assert " -mpip install my-additional-package" in cli.logged
14+
assert " -mpip install --no-cache-dir --upgrade my-additional-package" in cli.logged
1515
assert "env MACOSX_DEPLOYMENT_TARGET=12" in cli.logged # Comes from more specific macos-arm64.yml
1616
assert " -> dist/cpython-3.9.7-macos-arm64.tar.xz" in cli.logged # Comes from macos.yml (not defined in macos-arm64.yml)
1717
cli.match("Would run: build/cpython-.../bin/python -mpip install -U wheel")

0 commit comments

Comments
 (0)