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 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,16 @@ def build_extensions(self):
115
116
116
117
117
118
def _download_jquery_to (dest ):
119
+ if os .path .exists (os .path .join (dest , "jquery-ui-1.12.1" )):
120
+ return
121
+
122
+ # If we are installing from an sdist, use the already downloaded jquery-ui
123
+ sdist_src = os .path .join (
124
+ "lib/matplotlib/backends/web_backend" , "jquery-ui-1.12.1" )
125
+ if os .path .exists (sdist_src ):
126
+ shutil .copytree (sdist_src , os .path .join (dest , "jquery-ui-1.12.1" ))
127
+ return
128
+
118
129
# Note: When bumping the jquery-ui version, also update the versions in
119
130
# single_figure.html and all_figures.html.
120
131
url = "https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip"
You can’t perform that action at this time.
0 commit comments