3
from distutils.core import setup
5
import subprocess, glob, os.path
9
## HACK: make sure that the mo files are generated and up-to-date
10
#subprocess.call(["make", "-C", "po", "build-mo"])
11
#for filepath in glob.glob("po/mo/*/LC_MESSAGES/*.mo"):
12
# lang = filepath[len("po/mo/"):]
13
# targetpath = os.path.dirname(os.path.join("share/locale",lang))
14
# mo_files.append((targetpath, [filepath]))
16
# Make the nvidia-installer hooks executable
17
for x in glob.glob("nvidia-installer-hooks/*"):
22
author="Alberto Milone",
23
author_email="albertomilone@alice.it",
24
maintainer="Alberto Milone",
25
maintainer_email="albertomilone@alice.it",
26
url="http://www.albertomilone.com",
28
description="Find obsolete NVIDIA drivers",
29
packages=["NvidiaDetector"],
30
data_files=[("/etc/kernel/header_postinst.d/", glob.glob("nvidia-common")),
31
("/etc/kernel/postinst.d/", glob.glob("nvidia-common")),
32
("/usr/share/nvidia-common/", glob.glob("share/obsolete")),
33
("/usr/lib/nvidia/", glob.glob("nvidia-installer-hooks/*")),
35
scripts=["nvidia-detector"],