Skip to content

Commit 4f5aec3

Browse files
committed
If there's a Python install manager, use for Windows
1 parent 8966436 commit 4f5aec3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/downloads/release_detail.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ <h2 class="page-title">Files</h2>
5050
<div class="featured-download-box">
5151
<h3>{{ f.os.name }}</h3>
5252
<p class="download-buttons">
53+
{% if f.os.slug == 'windows' and latest_pymanager and release.is_version_at_least_3_5 %}
54+
<a class="button" href="https://www.python.org/downloads/latest/pymanager/">Download Python install manager</a>
55+
{% else %}
5356
<a class="button" href="{{ f.url }}">Download {{ f.name }}</a>
57+
{% endif %}
5458
</p>
5559
</div>
5660
{% endfor %}

0 commit comments

Comments
 (0)