Skip to content

Instantly share code, notes, and snippets.

@ronaldoussoren
ronaldoussoren / gist:fe4f80351a7ee72c245025df7b2ef1ed
Last active June 4, 2018 13:22
Crude hack for testing stable ABI
import unittest
import subprocess
import tempfile
import collections
import sys
import re
#
# Collect symbols tested for below
#
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):