upload.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:LBHue 作者: nriley 项目源码 文件源码
def create_virtualenv(bundle_path, requirements_path):
    scripts_path = os.path.join(bundle_path, 'Contents', 'Scripts')
    virtualenv.create_environment(scripts_path, site_packages=True)
    virtualenv.make_environment_relocatable(scripts_path)
    pip.main(['install', '--prefix', scripts_path, '-r', requirements_path])
    compileall.compile_dir(scripts_path, maxlevels=0)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号