Skip to content

Commit

Permalink
Remove the block on non-Windows, non-OS X platforms in setup.py.
Browse files Browse the repository at this point in the history
This is in preparation for in-tree C modules, which will need to be
built via setup.py on all platforms.
  • Loading branch information
stump committed Jul 13, 2010
1 parent 131948e commit ab5c959
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/setup.py
Expand Up @@ -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
Expand All @@ -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': [
{
Expand All @@ -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"]),
Expand All @@ -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.
Expand Down

0 comments on commit ab5c959

Please sign in to comment.