Skip to content

Instantly share code, notes, and snippets.

@ronaldoussoren
Created April 14, 2011 12:32
Show Gist options
  • Save ronaldoussoren/919377 to your computer and use it in GitHub Desktop.
Save ronaldoussoren/919377 to your computer and use it in GitHub Desktop.
934a935,936
> python_framework_name = distutils.sysconfig.get_config_var('PYTHONFRAMEWORK')
>
1026,1027c1028,1030
< if 'Python.framework' in prefix:
< if re.search(r'/Python(?:-32|-64)*$', py_executable):
---
> if python_framework_name is not None:
> # XXX Ronald
> if re.search(r'/%s(?:-32|-64)*$'%(python_framework_name,), py_executable):
1070c1073
< if 'Python.framework' in prefix:
---
> if python_framework_name is not None:
1079c1082
< prefix, 'Resources/Python.app/Contents/MacOS/Python')
---
> prefix, 'Resources/Python.app/Contents/MacOS', python_framework_name)
1089c1092
< os.path.join(prefix, 'Python'),
---
> os.path.join(prefix, python_framework_name),
1096c1099
< os.path.join(prefix, 'Python'),
---
> os.path.join(prefix, python_framework_name),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment