File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 31
31
from io import BytesIO
32
32
import os
33
33
from string import Template
34
+ import shutil
34
35
from zipfile import ZipFile
35
36
36
37
from setuptools import setup
@@ -147,6 +148,16 @@ def run(self):
147
148
148
149
149
150
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
+
150
161
# Note: When bumping the jquery-ui version, also update the versions in
151
162
# single_figure.html and all_figures.html.
152
163
url = "https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip"
You can’t perform that action at this time.
0 commit comments