17 |
|
|
18 |
import os |
import os |
19 |
from types import TupleType |
from types import TupleType |
20 |
|
import glob |
21 |
from distutils.core import setup, Extension, Command |
from distutils.core import setup, Extension, Command |
22 |
from distutils.command.install import install, INSTALL_SCHEMES, subst_vars |
from distutils.command.install import install, INSTALL_SCHEMES, subst_vars |
23 |
from distutils.command.build_py import build_py |
from distutils.command.build_py import build_py |
265 |
data_files = [] |
data_files = [] |
266 |
|
|
267 |
# bitmaps |
# bitmaps |
268 |
dir = "Resources/Bitmaps" |
for d, pattern in [("Resources/Bitmaps", "Resources/Bitmaps/*.xpm"), |
269 |
bitmaps = [] |
("Resources/Locale", "Resources/Locale/*/LC_MESSAGES/*.mo") |
270 |
for file in os.listdir(os.path.join("Resources", "Bitmaps")): |
]: |
271 |
if string.lower(file[-4:]) == ".xpm": |
data_files.append((d, glob.glob(pattern))) |
|
bitmaps.append(dir + '/' + file) |
|
|
data_files.append((dir, bitmaps)) |
|
272 |
|
|
273 |
# |
# |
274 |
# Command definitions |
# Command definitions |