aboutsummaryrefslogtreecommitdiff
blob: 387cfb61bfb20aa5b906934d1c56828e4ec73e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Subject: Prevent Panel from violating network sandboxing.

     * By default, "setup.py" invokes "npm" to rebuild Node.js packages bundled with Panel.
     * Without this patch we get `error: HTTPSConnectionPool`
     * A `sed` fix of the `_build_paneljs()` line will break the syntax.
     * Using the `PANEL_LITE_BUILD` variable might do the trick instead of a patch, but thus far it didn't 
Author: Horea Christian <gentoo@chymera.eu>
diff --git a/setup.py b/setup.py
index d2541dfb..8cfbf933 100644
--- a/setup.py
+++ b/setup.py
@@ -54,8 +54,6 @@ class CustomDevelopCommand(develop):
     """Custom installation for development mode."""

     def run(self):
-        if not PANEL_LITE_BUILD:
-            _build_paneljs()
         develop.run(self)


@@ -63,8 +61,6 @@ class CustomInstallCommand(install):
     """Custom installation for install mode."""

     def run(self):
-        if not PANEL_LITE_BUILD:
-            _build_paneljs()
         install.run(self)


@@ -72,8 +68,6 @@ class CustomSdistCommand(sdist):
     """Custom installation for sdist mode."""

     def run(self):
-        if not PANEL_LITE_BUILD:
-            _build_paneljs()
         sdist.run(self)


@@ -92,8 +86,6 @@ try:

         def run(self):
             """Do nothing so the command intentionally fails."""
-            if not PANEL_LITE_BUILD:
-                _build_paneljs()
             bdist_wheel.run(self)

     _COMMANDS['bdist_wheel'] = CustomBdistWheelCommand