1 *** setup.py 2010-12-23 00:41:56.000000000 +0100
2 --- setup2.py 2011-01-04 20:10:30.196424474 +0100
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
25 (os.path.join("share", "doc", "arista"), [
26 "README.md", "LICENSE", "AUTHORS"
28 ! (os.path.join("lib", "nautilus", "extensions-2.0", "python"), ["arista-nautilus.py"]),
31 ! for (prefix, path) in [("arista", "presets"),
34 for root, dirs, files in os.walk(path):
37 (os.path.join("share", "doc", "arista"), [
38 "README.md", "LICENSE", "AUTHORS"
40 ! (os.path.join("share", "nautilus-python", "extensions"), ["arista-nautilus.py"]),
43 ! for (prefix, path) in [("arista", "presets"),
46 for root, dirs, files in os.walk(path):
50 for path, fnames in data_files:
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)
60 for path, fnames in data_files:
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)