Skip to content

Commit 5750d5a

Browse files
committed
The autoupdater did not always prefer binary installations.
1 parent a4cfabb commit 5750d5a

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

docs/_plugins/auto_nav.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# structure and uses the file title (first H1) or the filename as fallback.
88
# ------------------------------------------------------------------
99
module AutoNav
10+
Jekyll.logger.info "AutoNav", "Plugin file is being loaded"
1011
class Generator < Jekyll::Generator
1112
safe true
1213
priority :low

install.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if not exist "%VENV%" (
1919
python -m pip install --upgrade pip
2020
python -m venv "%VENV%"
2121
"%VENV%\Scripts\python.exe" -m pip install --upgrade pip
22-
"%VENV%\Scripts\python.exe" -m pip install -r requirements.txt
22+
"%VENV%\Scripts\python.exe" -m pip install --no-cache-dir --prefer-binary -r requirements.txt
2323
)
2424
"%VENV%\Scripts\python" install.py %*
2525
echo Please press any key to continue...

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ seaborn==0.13.2
104104
sqlparse==0.5.3
105105

106106
# TimetoneFinder: Find the right timezones for a given coordinate
107-
timezonefinder==8.0.0
107+
timezonefinder==6.5.9
108108

109109
# tomli: Python TOML parser
110110
tomli==2.2.1

update.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if not exist "%VENV%" (
1111
python -m pip install --upgrade pip
1212
python -m venv "%VENV%"
1313
"%VENV%\Scripts\python.exe" -m pip install --upgrade pip
14-
"%VENV%\Scripts\python.exe" -m pip install -r requirements.txt
14+
"%VENV%\Scripts\python.exe" -m pip install --no-cache-dir --prefer-binary -r requirements.txt
1515
) else (
1616
"%VENV%\Scripts\python.exe" -m pip install --upgrade pip
1717
)

update.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818

1919

2020
def install_requirements() -> subprocess.CompletedProcess:
21-
return subprocess.run([sys.executable, '-m', 'pip', 'install', '-r', 'requirements.txt'])
21+
return subprocess.run([
22+
sys.executable,
23+
'-m', 'pip', 'install', '--no-cache-dir', '--prefer-binary', '-r', 'requirements.txt'
24+
])
2225

2326

2427
def do_update_git() -> int:

0 commit comments

Comments
 (0)