summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-08-27 09:50:38 -0300
committerTomás Touceda <chiiph@leap.se>2013-08-27 09:50:38 -0300
commit99b5facaa9c69386ebe15f0c1bf3d0e18ae68af5 (patch)
treef44764c4d3715eb9896683177ad179825f88fb8a
parentd6bf6d43d47de3c25219d36c8f1e9beda1b5d1f8 (diff)
parent67120dc79170d4254d23f44fa6fecaed4da9b13a (diff)
Merge remote-tracking branch 'kali/bug/add-data-files' into develop
-rwxr-xr-xsetup.py22
1 files changed, 16 insertions, 6 deletions
diff --git a/setup.py b/setup.py
index 2c80eb5c..7f2a5011 100755
--- a/setup.py
+++ b/setup.py
@@ -108,6 +108,21 @@ class cmd_sdist(versioneer_sdist):
cmdclass["build"] = cmd_build
cmdclass["sdist"] = cmd_sdist
+import platform
+_system = platform.system()
+IS_LINUX = True if _system == "Linux" else False
+
+if IS_LINUX:
+ data_files = [
+ # ("share/man/man1",
+ # ["docs/man/bitmask.1"]),
+ ("share/polkit-1/actions",
+ ["pkg/linux/polkit/net.openvpn.gui.leap.policy"]),
+ ("/etc/leap/",
+ ["pkg/linux/resolv-update"]),
+ ]
+else:
+ data_files = []
setup(
name="leap.bitmask",
@@ -146,12 +161,7 @@ setup(
include_package_data=True,
# not being used? -- setuptools does not like it.
# looks like debhelper is honoring it...
- data_files=[
- # ("share/man/man1",
- # ["docs/man/bitmask.1"]),
- ("share/polkit-1/actions",
- ["pkg/linux/polkit/net.openvpn.gui.leap.policy"]),
- ],
+ data_files=data_files,
zip_safe=False,
platforms="all",
entry_points={