Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 667a100 commit de16d97Copy full SHA for de16d97
setup.py
@@ -21,6 +21,7 @@
21
sys.exit(error)
22
23
import os
24
+import shutil
25
from zipfile import ZipFile
26
27
from setuptools import setup, find_packages, Extension
@@ -115,6 +116,13 @@ def build_extensions(self):
115
116
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
+
126
# Note: When bumping the jquery-ui version, also update the versions in
127
# single_figure.html and all_figures.html.
128
url = "https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip"
0 commit comments