@@ -553,13 +553,15 @@ def clean_build(self, arch=None):
553553 # doesn't persist in site-packages
554554 shutil .rmtree (self .ctx .python_installs_dir )
555555
556- def install_libs (self , arch , * libs ):
556+ def install_libs (self , arch , * libs , ** links ):
557557 libs_dir = self .ctx .get_libs_dir (arch .arch )
558558 if not libs :
559559 warning ('install_libs called with no libraries to install!' )
560560 return
561561 args = libs + (libs_dir ,)
562562 shprint (sh .cp , * args )
563+ for lib , link in links .iteritems ():
564+ shprint (sh .ln , '-s' , join (libs_dir , lib ), join (libs_dir , link ))
563565
564566 def has_libs (self , arch , * libs ):
565567 return all (map (lambda l : self .ctx .has_lib (arch .arch , l ), libs ))
@@ -879,8 +881,12 @@ def build_compiled_components(self, arch):
879881 hostpython = sh .Command (self .hostpython_location )
880882 if self .install_in_hostpython :
881883 shprint (hostpython , 'setup.py' , 'clean' , '--all' , _env = env )
884+
882885 shprint (hostpython , 'setup.py' , self .build_cmd , '-v' ,
883886 _env = env , * self .setup_extra_args )
887+
888+ # hostpython('setup.py', self.build_cmd, '-v', _env=env, _fg=True)
889+
884890 build_dir = glob .glob ('build/lib.*' )[0 ]
885891 shprint (sh .find , build_dir , '-name' , '"*.o"' , '-exec' ,
886892 env ['STRIP' ], '{}' , ';' , _env = env )
0 commit comments