File: setup.py

package info (click to toggle)
slune 1.0.12-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 25,460 kB
  • ctags: 1,054
  • sloc: python: 9,103; makefile: 9
file content (79 lines) | stat: -rw-r--r-- 2,759 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#! /usr/bin/env python

# Slune
# Copyright (C) 2006 Jean-Baptiste LAMY -- jiba@tuxfamily
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

import os, os.path, sys, glob, distutils.core, distutils.sysconfig
from distutils.core import setup


if "--no-lang" in sys.argv:
  sys.argv.remove("--no-lang")
  no_lang = 1
else: no_lang = 0


data_files = [
  (os.path.join("slune", "images"   ), glob.glob(os.path.join(".", "images"   , "*"))),
  (os.path.join("slune", "materials"), glob.glob(os.path.join(".", "materials", "*"))),
  (os.path.join("slune", "shapes"   ), glob.glob(os.path.join(".", "shapes"   , "*"))),
  (os.path.join("slune", "worlds"   ), glob.glob(os.path.join(".", "worlds"   , "*"))),
  (os.path.join("slune", "sounds"   ), glob.glob(os.path.join(".", "sounds"   , "*"))),
  ]
if not no_lang:
  data_files = data_files + [
    (os.path.join("slune", os.path.dirname(mo_file)), [mo_file])
    for mo_file
    in  glob.glob(os.path.join(".", "locale", "*", "LC_MESSAGES", "*"))
    if not "CVS" in mo_file
    ]

distutils.core.setup(
  name         = "Slune",
  version      = "1.0.12",
  license      = "GPL",
  description  = "A 3D racing and car-crashing game in Python, with multiplayer mode.",
  long_description  = """A 3D racing and car-crashing game in Python.
In this game, Gnu and Tux must provide AIDS medicine for Africa.
Includes a multiplayer mode.""",
  author       = "Jiba (LAMY Jean-Baptiste), Blam (LAMY Bertrand)",
  author_email = "jiba@tuxfamily.org",
  url          = "http://slune.nekeme.net",
  classifiers  = [
  "Topic :: Games/Entertainment :: Arcade",
  "Topic :: Multimedia :: Graphics :: 3D Rendering",
  "Natural Language :: French",
  "Natural Language :: English",
  "Programming Language :: Python",
  "Intended Audience :: End Users/Desktop",
  "Development Status :: 5 - Production/Stable",
  "License :: OSI Approved :: GNU General Public License (GPL)",
  ],
  
  
  scripts      = ["slune"],
  package_dir  = {"slune" : ""},
  packages     = ["slune"],
  
  data_files   = data_files,
  )


if "install" in sys.argv:
  # Post install stuff
  
  pass