virtualenv/res/lib/lib_create_env.py
changeset 108 717966c8d4b8
parent 106 4fc4ca3b9109
child 110 7f4a72abd680
equal deleted inserted replaced
107:66d4cc9cef7e 108:717966c8d4b8
   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,
   155                     show_stdout=True,
   155                     show_stdout=True,
   156                     extra_env={'JCC_JDK' : '/usr/lib/jvm/java-11-openjdk-i386/'})
   156                     extra_env={'JCC_JDK' : '/usr/lib/jvm/java-8-openjdk-i386/'})
   157     #install pylucene
   157     #install pylucene
   158 
   158 
   159     logger.notify("Install pylucene")
   159     logger.notify("Install pylucene")
   160     #modify makefile
   160     #modify makefile
   161     makefile_path = os.path.join(pylucene_src_path,"Makefile")
   161     makefile_path = os.path.join(pylucene_src_path,"Makefile")
   192     logger.notify("pylucene make")
   192     logger.notify("pylucene make")
   193     call_subprocess(['make'],
   193     call_subprocess(['make'],
   194                     cwd=os.path.abspath(pylucene_src_path),
   194                     cwd=os.path.abspath(pylucene_src_path),
   195                     filter_stdout=filter_python_develop,
   195                     filter_stdout=filter_python_develop,
   196                     show_stdout=True,
   196                     show_stdout=True,
   197                     extra_env={'JCC_JDK' : '/usr/lib/jvm/java-11-openjdk-i386/'})
   197                     extra_env={'JCC_JDK' : '/usr/lib/jvm/java-8-openjdk-i386/'})
   198 
   198 
   199     logger.notify("pylucene make install")
   199     logger.notify("pylucene make install")
   200     call_subprocess(['make', 'install'],
   200     call_subprocess(['make', 'install'],
   201                     cwd=os.path.abspath(pylucene_src_path),
   201                     cwd=os.path.abspath(pylucene_src_path),
   202                     filter_stdout=filter_python_develop,
   202                     filter_stdout=filter_python_develop,
   203                     show_stdout=True,
   203                     show_stdout=True,
   204                     extra_env={'JCC_JDK' : '/usr/lib/jvm/java-11-openjdk-i386/'})
   204                     extra_env={'JCC_JDK' : '/usr/lib/jvm/java-8-openjdk-i386/'})
   205 
   205 
   206 
   206 
   207 def install_psycopg2(option_str, extra_env, res_source_key, home_dir, lib_dir, tmp_dir, src_dir, res_env, logger, call_subprocess, filter_python_develop):
   207 def install_psycopg2(option_str, extra_env, res_source_key, home_dir, lib_dir, tmp_dir, src_dir, res_env, logger, call_subprocess, filter_python_develop):
   208     psycopg2_src = os.path.join(src_dir,"psycopg2.zip")
   208     psycopg2_src = os.path.join(src_dir,"psycopg2.zip")
   209     shutil.copy(res_env.URLS['PSYCOPG2'][res_source_key], psycopg2_src)
   209     shutil.copy(res_env.URLS['PSYCOPG2'][res_source_key], psycopg2_src)