File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Original file line number Diff line number Diff line change 21
21
sys .exit (error )
22
22
23
23
import os
24
+ import shutil
24
25
from zipfile import ZipFile
25
26
26
27
from setuptools import setup , find_packages , Extension
@@ -115,6 +116,13 @@ def build_extensions(self):
115
116
116
117
117
118
def _download_jquery_to (dest ):
119
+ # If we are installing from an sdist, use the already downloaded jquery-ui
120
+ sdist_src = os .path .join (
121
+ "lib/matplotlib/backends/web_backend" , "jquery-ui-1.12.1" )
122
+ if not os .path .exists (sdist_src ):
123
+ shutil .copytree (sdist_src , os .path .join (dest , "jquery-ui-1.12.1" ))
124
+ return
125
+
118
126
# Note: When bumping the jquery-ui version, also update the versions in
119
127
# single_figure.html and all_figures.html.
120
128
url = "https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip"
You can’t perform that action at this time.
0 commit comments