diff --git a/src/setup.py b/src/setup.py index d35e1d96b..24e8589fd 100644 --- a/src/setup.py +++ b/src/setup.py @@ -25,13 +25,11 @@ from distutils.core import setup import sys, SceneFactory, Version, glob, os -if os.name != 'nt' and sys.platform != 'darwin': - raise RuntimeError, 'This script is only meaningful for OS X and Windows.' - # Start setting up py2{exe,app} and building the argument set for setup(). # setup() arguments that are not specific to either are near the bottom of # the script, just before the actual call to setup(). +setup_args = {} if os.name == 'nt': import py2exe from py2exe.resources.VersionInfo import RT_VERSION @@ -44,7 +42,7 @@ def isSystemDLL(pathname): return __orig_isSystemDLL(pathname) py2exe.build_exe.isSystemDLL = isSystemDLL - setup_args = { + setup_args.update({ 'zipfile': "data/library.zip", 'windows': [ { @@ -64,10 +62,10 @@ def isSystemDLL(pathname): ).resource_bytes())] } ] - } + }) elif sys.platform == 'darwin': import py2app - setup_args = { + setup_args.update({ 'app': ['FoFiX.py'], 'data_files': [ (".", ["../AUTHORS", "../COPYING", "../CREDITS", "../ChangeLog", "../Makefile", "../NEWS", "../README"]), @@ -82,7 +80,7 @@ def isSystemDLL(pathname): 'description': "Frets on Fire X", 'name': "FoFiX", 'url': "http://code.google.com/p/fofix/", - } + }) # Forced includes needed for PIL.