File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 11
2+ import sys
23from distutils .core import setup
34from os import unlink
45from platform import architecture , system
1011 files = ['include *.rst' , 'include doc/*' , 'prune test*' ]
1112 fileh .write ("\n " .join (files ))
1213
14+ todo = 'check' not in sys .argv and system () == 'Linux'
1315data_files = []
14- if system () == 'Linux' :
16+ if todo :
1517 file_ok = 'libmss.so'
1618 file_ = 'dep/linux/32/libmss.so'
1719 if architecture ()[0 ].startswith ('64' ):
6971 data_files = data_files
7072)
7173
72- try :
74+ if todo and 'install' in sys .argv :
75+ from subprocess import call
76+ print ('Removing {0}' .format (file_ok ))
7377 unlink (file_ok )
74- except NameError :
75- pass
78+ try :
79+ print ('Removing /etc/ld.so.cache' )
80+ unlink ('/etc/ld.so.cache' )
81+ print ('Writing /etc/ld.so.cache' )
82+ ret = call (['ldconfig' ])
83+ except OSError :
84+ pass
You can’t perform that action at this time.
0 commit comments