~ubuntu-branches/ubuntu/precise/fofix-dfsg/precise

« back to all changes in this revision

Viewing changes to src/setup_mac.py

  • Committer: Bazaar Package Importer
  • Author(s): Christian Hammers
  • Date: 2010-02-21 12:09:32 UTC
  • Revision ID: james.westby@ubuntu.com-20100221120932-6bh992d2u8dtj9gr
Tags: upstream-3.121
ImportĀ upstreamĀ versionĀ 3.121

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: iso-8859-1 -*-                                        
 
2
"""
 
3
This is a setup.py script generated by py2applet
 
4
 
 
5
Usage:
 
6
    python setup.py py2app
 
7
"""
 
8
 
 
9
from setuptools import setup
 
10
 
 
11
import sys, SceneFactory, Version
 
12
import glob
 
13
 
 
14
APP = ['FoFiX.py']
 
15
 
 
16
def songFiles(song, extra = []):
 
17
  return ["../data/songs/%s/%s" % (song, f) for f in ["guitar.ogg", "notes.mid", "song.ini", "song.ogg"] + extra]
 
18
 
 
19
dataFiles = [
 
20
  (".", ["../AUTHORS", "../COPYING", "../CREDITS", "../ChangeLog", "../Makefile", "../NEWS", "../README", "../fretsonfire.ini"]),
 
21
  ("doc", glob.glob("../doc/*")),
 
22
  ("data", glob.glob("../data/*"))
 
23
]
 
24
 
 
25
OPTIONS = {
 
26
 'argv_emulation': True,
 
27
 'dist_dir': '../dist',
 
28
 'frameworks' : '../../glew/lib/libGLEW.dylib',
 
29
 'iconfile': '../icon_mac_composed.icns',
 
30
 'plist': dict(CFBundleIdentifier='org.pythonmac.FoFiX.FretsonFire',
 
31
      CFBundleSignature='FoFX',
 
32
      NSHumanReadableCopyright=u"\xa9 2008-2009 FoFiX Team.  GNU GPL v2 or later."),
 
33
 'includes': SceneFactory.scenes,
 
34
 'excludes': ["glew.gl.apple",
 
35
      "glew.gl.ati",
 
36
      "glew.gl.atix",
 
37
      "glew.gl.hp",
 
38
      "glew.gl.ibm",
 
39
      "glew.gl.ingr",
 
40
      "glew.gl.intel",
 
41
      "glew.gl.ktx",
 
42
      "glew.gl.mesa",
 
43
      "glew.gl.oml",
 
44
      "glew.gl.pgi",
 
45
      "glew.gl.rend",
 
46
      "glew.gl.s3",
 
47
      "glew.gl.sgi",
 
48
      "glew.gl.sgis",
 
49
      "glew.gl.sgix",
 
50
      "glew.gl.sun",
 
51
      "glew.gl.sunx",
 
52
      "glew.gl.threedfx",
 
53
      "glew.gl.win",
 
54
      "ode",
 
55
      "unicodedata",
 
56
      "_ssl",
 
57
      "bz2",
 
58
      "email",
 
59
      "calendar",
 
60
      "bisect",
 
61
      "difflib",
 
62
      "doctest",
 
63
      "ftplib",
 
64
      "getpass",
 
65
      "gopherlib",
 
66
      "heapq",
 
67
      "macpath",
 
68
      "macurl2path",
 
69
      "GimpGradientFile",
 
70
      "GimpPaletteFile",
 
71
      "PaletteFile"
 
72
 ]
 
73
}
 
74
import GameEngine
 
75
fullVersionString = GameEngine.version
 
76
 
 
77
setup(
 
78
    version=fullVersionString[7:],
 
79
    description="Frets on Fire X",
 
80
    name="FoFiX",
 
81
    url="http://www.unrealvoodoo.org",
 
82
    app=APP,
 
83
    data_files=dataFiles,
 
84
    options={'py2app': OPTIONS},
 
85
    setup_requires=['py2app'],
 
86
)