virtualenv/res/lib/lib_create_env.py
changeset 120 651129650e67
parent 118 0a26e6263f1d
child 122 d1c9b64b3c23
equal deleted inserted replaced
119:b22e81340bc3 120:651129650e67
   140                 # rename file and etract all
   140                 # rename file and etract all
   141                 shutil.move(patch_dest_path, patch_dest_path + ".zip")
   141                 shutil.move(patch_dest_path, patch_dest_path + ".zip")
   142                 zf = zipfile.ZipFile(patch_dest_path + ".zip",'r')
   142                 zf = zipfile.ZipFile(patch_dest_path + ".zip",'r')
   143                 zf.extractall(patch_dest_path)
   143                 zf.extractall(patch_dest_path)
   144                 os.remove(patch_dest_path + ".zip")
   144                 os.remove(patch_dest_path + ".zip")
   145         # logger.notify("Patch jcc : %s " % (patch_dest_path))
   145         logger.notify("Patch jcc : %s " % (patch_dest_path))
   146         # os.chdir(patch_dest_path)
   146         os.chdir(patch_dest_path)
   147         # p = patch.fromfile(os.path.join(jcc_src_path,"jcc","patches","patch.43.0.6c11"))
   147         p = patch.fromfile(os.path.join(jcc_src_path,"jcc","patches","patch.43.0.6c11"))
   148         # p.apply()
   148         p.apply()
   149         # os.chdir(olddir)
   149         os.chdir(olddir)
   150 
   150 
   151     logger.notify("Install jcc")
   151     logger.notify("Install jcc")
   152     call_subprocess([os.path.abspath(os.path.join(home_dir, 'bin', 'python')), 'setup.py', 'install'],
   152     call_subprocess([os.path.abspath(os.path.join(home_dir, 'bin', 'python')), 'setup.py', 'install'],
   153                     cwd=jcc_src_path,
   153                     cwd=jcc_src_path,
   154                     filter_stdout=filter_python_develop,
   154                     filter_stdout=filter_python_develop,