~ubuntu-branches/ubuntu/oneiric/nvidia-common/oneiric

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Milone
  • Date: 2011-06-04 12:13:27 UTC
  • Revision ID: james.westby@ubuntu.com-20110604121327-hojgytoy6f4ev5sy
Tags: 1:0.2.30+1
Add epoch to override the sync. The packages in Debian and Ubuntu
have the same name but different code and scope (LP: #792576).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
from distutils.core import setup
 
4
 
 
5
import subprocess, glob, os.path
 
6
import os
 
7
 
 
8
#mo_files = []
 
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]))
 
15
 
 
16
# Make the nvidia-installer hooks executable
 
17
for x in glob.glob("nvidia-installer-hooks/*"):
 
18
    os.chmod(x, 0755)
 
19
 
 
20
setup(
 
21
    name="nvidia-common",
 
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",
 
27
    license="gpl",
 
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/*")),
 
34
               ],# + mo_files,
 
35
    scripts=["nvidia-detector"],
 
36
)