init_venv: Add glob for sip.so.

This commit is contained in:
Florian Bruhin 2014-12-05 06:38:22 +01:00
parent a5da6dddc0
commit 1c22b9613b

View File

@ -98,7 +98,10 @@ def link_pyqt():
venv_path = venv_python(
'-c', 'from distutils.sysconfig import get_python_lib\n'
'print(get_python_lib())', output=True).rstrip()
files = ('PyQt5', 'sip.so')
files = (
'PyQt5',
os.path.basename(glob.glob(os.path.join(sys_path, 'sip*.so'))),
)
for fn in files:
source = os.path.join(sys_path, fn)
link_name = os.path.join(venv_path, fn)