Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
filens = shprint(sh.find, site_packages_dir, '-iname', '*.so').stdout.decode(
'utf-8').split('\n')[:-1]
for filen in filens:
parts = filen.split('.')
if len(parts) <= 2:
continue
shprint(sh.mv, filen, filen.split('.')[0] + '.so')
site_packages_dir = join(abspath(curdir),
site_packages_dir)
self.strip_libraries(arch)
self.fry_eggs(site_packages_dir)
super(PlainBootstrap, self).run_distribute()
bootstrap = PlainBootstrap()
info('Renaming .so files to reflect cross-compile')
site_packages_dir = 'python/site-packages'
filens = shprint(sh.find, site_packages_dir, '-iname', '*.so').stdout.decode(
'utf-8').split('\n')[:-1]
for filen in filens:
parts = filen.split('.')
if len(parts) <= 2:
continue
shprint(sh.mv, filen, filen.split('.')[0] + '.so')
site_packages_dir = join(abspath(curdir),
site_packages_dir)
self.strip_libraries(arch)
self.fry_eggs(site_packages_dir)
super(PlainBootstrap, self).run_distribute()