mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Remove the TILE hack because it is available on OS X 10.7 Lion.
This commit is contained in:
parent
39c479ab05
commit
c180fe4854
1 changed files with 1 additions and 28 deletions
29
setup_osx.py
29
setup_osx.py
|
@ -24,22 +24,6 @@ if not os.path.exists('data/html'):
|
||||||
# build the HTML list of games
|
# build the HTML list of games
|
||||||
call("./scripts/all_games.py > docs/all_games.html", shell=True)
|
call("./scripts/all_games.py > docs/all_games.html", shell=True)
|
||||||
|
|
||||||
# Use Tile widgets, if they are installed.
|
|
||||||
# http://tktable.sourceforge.net/tile/
|
|
||||||
import Tkinter
|
|
||||||
root = Tkinter.Tk()
|
|
||||||
root.withdraw()
|
|
||||||
try:
|
|
||||||
root.tk.call('package', 'require', 'tile', '0.7.8')
|
|
||||||
except:
|
|
||||||
TILE = None
|
|
||||||
else:
|
|
||||||
TILE = "tile0.7.8"
|
|
||||||
TCL_EXTENSION_PATH = "/Library/Tcl"
|
|
||||||
finally:
|
|
||||||
root.destroy()
|
|
||||||
del root, Tkinter
|
|
||||||
|
|
||||||
# Use Freecell Solver, if it is installed.
|
# Use Freecell Solver, if it is installed.
|
||||||
# http://fc-solve.berlios.de/
|
# http://fc-solve.berlios.de/
|
||||||
SOLVER_LIB_PATH = "/usr/local/lib/libfreecell-solver.0.dylib"
|
SOLVER_LIB_PATH = "/usr/local/lib/libfreecell-solver.0.dylib"
|
||||||
|
@ -65,7 +49,7 @@ PLIST = dict(
|
||||||
APP = ['pysol.py']
|
APP = ['pysol.py']
|
||||||
ICON_FILE = 'data/PySol.icns'
|
ICON_FILE = 'data/PySol.icns'
|
||||||
DATA_FILES = ['docs', 'data', 'scripts','COPYING', 'README'] + SOLVER
|
DATA_FILES = ['docs', 'data', 'scripts','COPYING', 'README'] + SOLVER
|
||||||
RESOURCES = [os.path.join(TCL_EXTENSION_PATH, TILE)] if TILE else []
|
RESOURCES = []
|
||||||
FRAMEWORKS = [SOLVER_LIB_PATH] if SOLVER_LIB_PATH else []
|
FRAMEWORKS = [SOLVER_LIB_PATH] if SOLVER_LIB_PATH else []
|
||||||
OPTIONS = dict(argv_emulation=True,
|
OPTIONS = dict(argv_emulation=True,
|
||||||
plist=PLIST,
|
plist=PLIST,
|
||||||
|
@ -82,17 +66,6 @@ setup(
|
||||||
setup_requires=['py2app'],
|
setup_requires=['py2app'],
|
||||||
)
|
)
|
||||||
|
|
||||||
##
|
|
||||||
top = os.getcwd()
|
|
||||||
# FIXME: a hack to get Tcl extensions working
|
|
||||||
# from inside the app bundle
|
|
||||||
if TILE and "py2app" in sys.argv:
|
|
||||||
os.chdir('dist/%s.app/Contents/Frameworks' % PACKAGE)
|
|
||||||
try:
|
|
||||||
os.symlink('../Resources/%s' % TILE, TILE)
|
|
||||||
except OSError:
|
|
||||||
pass
|
|
||||||
os.chdir(top)
|
|
||||||
# Modify the fc-solve binary with install_name_tool to use the dependent
|
# Modify the fc-solve binary with install_name_tool to use the dependent
|
||||||
# libfreecell-solver dynamic library in the app bundle.
|
# libfreecell-solver dynamic library in the app bundle.
|
||||||
if SOLVER and "py2app" in sys.argv:
|
if SOLVER and "py2app" in sys.argv:
|
||||||
|
|
Loading…
Add table
Reference in a new issue