def run(self): fh, abs_path = mkstemp(".py") new_file = open(abs_path, 'w') # Clear old installation new_file.write(""" from distutils import sysconfig import os, shutil old_installation = os.path.join(sysconfig.get_python_lib(), 'expyriment') if os.path.isdir(old_installation): shutil.rmtree(old_installation) """) new_file.close() close(fh) self.pre_install_script = abs_path bdist_wininst.run(self)
def run(self): self.run_command('data') _bdist_wininst.run(self)
def run(self): self.copy_fortran_libs() _bdist_wininst.run(self)