Fix expect on linux (#15230) (#15269)

* Fix expect on linux

* Flake8
This commit is contained in:
iarspider 2020-02-28 21:57:45 +01:00 committed by GitHub
parent 38d5d7304d
commit 97e909ef0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,7 @@ def darwin_fix(self):
join_path(self.prefix.lib, 'expect{0}'.format(self.version)))
old = 'libexpect{0}.dylib'.format(self.version)
new = glob.glob(join_path(self.prefix.lib, 'expect*', 'libexpect*'))[0]
new = glob.glob(join_path(self.prefix.lib, 'expect*',
'libexpect*'))[0]
install_name_tool = Executable('install_name_tool')
install_name_tool('-change', old, new, self.prefix.bin.expect)