Skip to content
Browse files

修正 icons 安装

  • Loading branch information...
1 parent 2f55df3 commit b95e0ca55b95838eeb480a32fcd8da6ca8c2839f @shellexy shellexy committed Oct 20, 2011
Showing with 3 additions and 4 deletions.
  1. +0 −1 setup.cfg
  2. +3 −3 setup.py
View
1 setup.cfg
@@ -3,7 +3,6 @@ prefix=/usr
[build]
i18n = True
-icons = True
[build_i18n]
domain = hotot
View
6 setup.py
@@ -1,15 +1,15 @@
#!/usr/bin/env python
# -*- coding:utf8 -*-
-from setuptools import setup
+from distutils.core import setup
from DistUtilsExtra.command import *
from glob import glob
import os, os.path
def get_data_files(root, data_dir):
return [
(root + parent[len(data_dir):], [ os.path.join(parent, fn) for fn in files ])
- for parent, dirs, files in os.walk(data_dir) if files and not parent.startswith('data/icons')
+ for parent, dirs, files in os.walk(data_dir) if files and (not parent.startswith('data/icons') or 'icons' in root)
]
setup(name='hotot',
@@ -41,7 +41,7 @@ def get_data_files(root, data_dir):
packages = ['hotot'],
data_files = [
('share/pixmaps', ['hotot.png']),
- ] + get_data_files('share/hotot', 'data'),
+ ] + get_data_files('share/hotot', 'data') + get_data_files('share/icons/hicolor', 'data/icons'),
cmdclass = { "build" : build_extra.build_extra,
"build_i18n" : build_i18n.build_i18n,
}

0 comments on commit b95e0ca

Please sign in to comment.
Something went wrong with that request. Please try again.