Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 180a87c

Browse filesBrowse files
authored
Merge pull request #14986 from tacaswell/auto-backport-of-pr-14915-on-v2.2.x
BLD: use jquery in sdist when installing from sdist Merge pull request #14915 from AWhetter/fix_14585
2 parents 20fa909 + 8d27eeb commit 180a87c
Copy full SHA for 180a87c

File tree

Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed

‎setup.py

Copy file name to clipboardExpand all lines: setup.py
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
from io import BytesIO
3232
import os
3333
from string import Template
34+
import shutil
3435
from zipfile import ZipFile
3536

3637
from setuptools import setup
@@ -147,6 +148,16 @@ def run(self):
147148

148149

149150
def _download_jquery_to(dest):
151+
if os.path.exists(os.path.join(dest, "jquery-ui-1.12.1")):
152+
return
153+
154+
# If we are installing from an sdist, use the already downloaded jquery-ui
155+
sdist_src = os.path.join(
156+
"lib/matplotlib/backends/web_backend", "jquery-ui-1.12.1")
157+
if os.path.exists(sdist_src):
158+
shutil.copytree(sdist_src, os.path.join(dest, "jquery-ui-1.12.1"))
159+
return
160+
150161
# Note: When bumping the jquery-ui version, also update the versions in
151162
# single_figure.html and all_figures.html.
152163
url = "https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.