summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-01-30 05:38:03 +0900
committerkali <kali@leap.se>2013-01-30 06:23:29 +0900
commitd7a84c54ea631eec457d92839bf16d1ec027cb3b (patch)
treea3e40fd16bc87938b5571faba9e115c910a46197
parent173e532c810d16bcef8f3009bc9203eed9604c87 (diff)
remove copy data hook from setup
-rwxr-xr-xsetup.py30
1 files changed, 1 insertions, 29 deletions
diff --git a/setup.py b/setup.py
index db95c1ac..e73690ae 100755
--- a/setup.py
+++ b/setup.py
@@ -159,32 +159,6 @@ class cmd_sdist(_sdist):
versioneer.SHORT_VERSION_PY % self._versioneer_generated_versions)
f.close()
-from distutils.command.install_data import install_data as _install_data
-
-
-class cmd_post_install(_install_data):
- """
- workaround for installing non-package data
- outside of the bounds of our internal data
- Debian or other packaging should igore this.
- """
- # We could use a environmental flag.
- def run(self):
- _install_data.run(self)
- # is this the real life?
- # is this just fantasy?
- if not hasattr(sys, 'real_prefix'):
- # looks like we are NOT
- # running inside a virtualenv...
- # let's install data.
- # XXX should add platform switch
- import shutil
- print("Now installing policykit file...")
- shutil.copyfile(
- "pkg/linux/polkit/net.openvpn.gui.leap.policy",
- "/usr/share/polkit-1/actions"
- "/net.openvpn.gui.leap.policy")
-
cmdclass = versioneer.get_cmdclass()
cmdclass["branding"] = DoBranding
@@ -193,9 +167,6 @@ cmdclass["branding"] = DoBranding
#cmdclass["build"] = cmd_build
#cmdclass["sdist"] = cmd_sdist
-cmdclass["install_data"] = cmd_post_install
-
-
launcher_name = branding.get_shortname()
if launcher_name:
leap_launcher = 'leap-%s-client=leap.app:main' % launcher_name
@@ -237,6 +208,7 @@ setup(
zip_safe=False,
# not being used since setuptools does not like it.
+ # XXX it should be only for linux!
data_files=[
("share/man/man1",
["docs/man/leap.1"]),