updated on Sun Jan 15 12:00:22 UTC 2012
[aur-mirror.git] / arista / patchroot.diff
blobbefe78541f5a3b3a5c63506b78ab3dfdef456a86
1 *** setup.py 2010-12-23 00:41:56.000000000 +0100
2 --- setup2.py 2011-01-04 20:10:30.196424474 +0100
3 ***************
4 *** 1,7 ****
5 #!/usr/bin/env python
7 import os
8 - import py_compile
9 import sys
11 from glob import glob
12 --- 1,6 ----
13 ***************
14 *** 9,14 ****
15 --- 8,14 ----
16 from distutils.core import setup
17 from distutils.command.install_data import install_data
18 from distutils.dist import DistributionMetadata
19 + from distutils.util import byte_compile
21 # Patch distutils if it can't cope with the "classifiers" or
22 # "download_url" keywords
23 ***************
24 *** 25,35 ****
25 (os.path.join("share", "doc", "arista"), [
26 "README.md", "LICENSE", "AUTHORS"
27 ]),
28 ! (os.path.join("lib", "nautilus", "extensions-2.0", "python"), ["arista-nautilus.py"]),
31 ! for (prefix, path) in [("arista", "presets"),
32 ! ("arista", "ui"),
33 ("", "locale")]:
34 for root, dirs, files in os.walk(path):
35 to_add = []
36 --- 25,35 ----
37 (os.path.join("share", "doc", "arista"), [
38 "README.md", "LICENSE", "AUTHORS"
39 ]),
40 ! (os.path.join("share", "nautilus-python", "extensions"), ["arista-nautilus.py"]),
43 ! for (prefix, path) in [("arista", "presets"),
44 ! ("arista", "ui"),
45 ("", "locale")]:
46 for root, dirs, files in os.walk(path):
47 to_add = []
48 ***************
49 *** 50,58 ****
50 for path, fnames in data_files:
51 for fname in fnames:
52 if fname.endswith(".py"):
53 ! full = os.path.join(sys.prefix, path, fname)
54 print "byte-compiling %s" % full
55 ! py_compile.compile(full)
57 setup(
58 name = "arista",
59 --- 50,58 ----
60 for path, fnames in data_files:
61 for fname in fnames:
62 if fname.endswith(".py"):
63 ! full = os.path.join(self.root + sys.prefix, path, fname)
64 print "byte-compiling %s" % full
65 ! byte_compile([full], prefix=self.root, base_dir=sys.prefix)
67 setup(
68 name = "arista",