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 22
22
import os
23
23
from string import Template
24
24
import urllib .request
25
+ import shutil
25
26
from zipfile import ZipFile
26
27
27
28
from setuptools import setup , Extension
@@ -124,6 +125,16 @@ def build_extensions(self):
124
125
125
126
126
127
def _download_jquery_to (dest ):
128
+ if os .path .exists (os .path .join (dest , "jquery-ui-1.12.1" )):
129
+ return
130
+
131
+ # If we are installing from an sdist, use the already downloaded jquery-ui
132
+ sdist_src = os .path .join (
133
+ "lib/matplotlib/backends/web_backend" , "jquery-ui-1.12.1" )
134
+ if os .path .exists (sdist_src ):
135
+ shutil .copytree (sdist_src , os .path .join (dest , "jquery-ui-1.12.1" ))
136
+ return
137
+
127
138
# Note: When bumping the jquery-ui version, also update the versions in
128
139
# single_figure.html and all_figures.html.
129
140
url = "https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip"
You can’t perform that action at this time.
0 commit comments