~osomon/phatch/extract-all-metadata

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: spe.stani.be at gmail
  • Date: 2009-06-15 02:40:12 UTC
  • Revision ID: spe.stani.be@gmail.com-20090615024012-xekqmq40jlbt3m5y
change file structure

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
            ]
42
42
 
43
43
if not WINDOWS:
 
44
    DATA_PATH   = 'share/phatch/data'
44
45
    DOC_PATH    = 'share/phatch/docs'
45
46
    LOCALE_PATH = 'share/'
46
47
 
47
 
def doc(x=''):
48
 
    return os.path.join(DOC_PATH,x)
 
48
def doc(path=''):
 
49
    return os.path.join(DOC_PATH,path)
 
50
    
 
51
def data(path):
 
52
    return os.path.join(DATA_PATH,path)
49
53
 
50
54
PACKAGES    = [ 'phatch','phatch.actions','phatch.console','phatch.core',
51
55
                'phatch.core.lib','phatch.data','phatch.other','phatch.pyWx',
67
71
    (doc('phatch_dev/images/icons/callouts'),
68
72
        glob.glob('docs/phatch_dev/images/icons/callouts/*.png')),
69
73
]
 
74
#data
 
75
data_files = [
 
76
    (data('actionlists'), glob.glob("data/actionlists/*.phatch")),
 
77
    (data('fonts'), glob.glob("data/fonts/*.ttf")),
 
78
    (data('highlights'), glob.glob("data/images/highlights/*.png")),
 
79
    (data('masks'), glob.glob("data/images/masks/*.jpg")),
 
80
]
70
81
 
71
82
#images, fonts & icons
72
83
if WINDOWS:
80
91
        #images
81
92
        ('share/phatch/images', glob.glob("images/*.png")+\
82
93
            glob.glob("images/*.svg")),
83
 
        ('share/phatch/images/masks', glob.glob("images/masks/*.jpg")),
84
 
        ('share/phatch/images/highlights', 
85
 
            glob.glob("images/highlights/*.png")),
86
 
        #fonts
87
 
        ('share/phatch/fonts', glob.glob("fonts/*.ttf")),
88
 
        #library
89
 
        ('share/phatch/actionlists', glob.glob("actionlists/*.phatch")),
90
94
        #man page
91
95
        ('share/man/man1',['linux/phatch.1']),
92
96
        #mime type
105
109
    os_files.append((python_nautilus_extensions_path, NAUTILUS_SCRIPTS))
106
110
 
107
111
dist =  setup(
108
 
            packages        = PACKAGES,
109
 
            scripts         = ['bin/phatch'],
110
 
            data_files      = i18n_files + doc_files + os_files,
111
 
            **info.SETUP
112
 
        )
 
112
    packages        = PACKAGES,
 
113
    scripts         = ['bin/phatch'],
 
114
    data_files      = i18n_files + doc_files + data_files + os_files,
 
115
    **info.SETUP
 
116
)
113
117
 
114
118
if not WINDOWS:
 
119
    # does this work on mac?
115
120
    # Update the mime types
116
121
    if ROOT and dist != None:
117
122