Changeset 3436 for pkpgcounter/trunk/setup.py
- Timestamp:
- 10/06/08 00:22:07 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/setup.py
r564 r3436 1 1 #! /usr/bin/env python 2 # -*- coding: UTF-8 -*-2 # -*- coding: utf-8 -*- 3 3 # 4 4 # pkpgcounter : a generic Page Description Language parser … … 9 9 # the Free Software Foundation, either version 3 of the License, or 10 10 # (at your option) any later version. 11 # 11 # 12 12 # This program is distributed in the hope that it will be useful, 13 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 15 # GNU General Public License for more details. 16 # 16 # 17 17 # You should have received a copy of the GNU General Public License 18 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. … … 28 28 try : 29 29 from distutils.core import setup 30 except ImportError, msg : 30 except ImportError, msg : 31 31 sys.stderr.write("%s\n" % msg) 32 32 sys.stderr.write("You need the DistUtils Python module.\nunder Debian, you may have to install the python-dev package.\nOf course, YMMV.\n") 33 33 sys.exit(-1) 34 35 try : 34 35 try : 36 36 from PIL import Image 37 except ImportError : 37 except ImportError : 38 38 sys.stderr.write("You need the Python Imaging Library (aka PIL).\nYou can grab it from http://www.pythonware.com\n") 39 39 sys.exit(-1) 40 41 try : 40 41 try : 42 42 import psyco 43 except ImportError : 43 except ImportError : 44 44 sys.stderr.write("WARN: If you are running on a 32 Bits x86 platform, you should install the Python Psyco module if possible, this would greatly speedup parsing. NB : Psyco doesn't work on other platforms, so don't worry if you're in this case.\n") 45 45 46 46 sys.path.insert(0, "pkpgpdls") 47 47 from pkpgpdls.version import __version__, __doc__ … … 53 53 directory = os.sep.join(["share", "locale", lang, "LC_MESSAGES"]) 54 54 data_files.append((directory, [ mofile ])) 55 56 docdir = "share/doc/pkpgcounter" 55 56 docdir = "share/doc/pkpgcounter" 57 57 docfiles = ["README", "COPYING", "BUGS", "CREDITS", "NEWS"] 58 58 data_files.append((docdir, docfiles)) 59 59 60 60 directory = os.sep.join(["share", "man", "man1"]) 61 manpages = glob.glob(os.sep.join(["man", "*.1"])) 61 manpages = glob.glob(os.sep.join(["man", "*.1"])) 62 62 data_files.append((directory, manpages)) 63 63 … … 71 71 scripts = [ "bin/pkpgcounter" ], 72 72 data_files = data_files) 73 73