File: system-clipboard-js.patch

package info (click to toggle)
sphinx-copybutton 0.5.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 508 kB
  • sloc: javascript: 321; python: 192; makefile: 21
file content (24 lines) | stat: -rw-r--r-- 619 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/setup.py
+++ b/setup.py
@@ -3,21 +3,6 @@ from pathlib import Path
 
 from setuptools import setup, find_packages
 
-if os.path.isdir("clipboard.js") and not os.path.islink(
-    "sphinx_copybutton/_static/clipboard.min.js"
-):
-    raise SystemExit("Error: Support for symbolic links is required")
-
-if os.path.isdir("clipboard.js") and not os.path.isfile(
-    "clipboard.js/dist/clipboard.min.js"
-):
-    raise SystemExit(
-        """Error: clipboard.js submodule not available, run
-
-        git submodule update --init
-        """
-    )
-
 with open("./README.md") as ff:
     readme_text = ff.read()