alibaba / alibaba/funcraft

fun build会在python可执行文件头加入本地虚拟环境python解释器路径

Open
#987 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
931
Forks
128
PR merge metrics
No merged PRs in 30d

Description

本机虚拟环境py36,requirements中包含gunicorn等三方包,执行fun build,在生成的.fun/python/bin/gunicorn的文件头,加入了`#!/root/.pyenv/versions/3.6.5/envs/py36/bin/python3.6`
bootstrap中使用gunicorn启动项目时,会找不到解释器
![{67EB42F8-7EE5-4001-83BE-62BECB89B844}_20200806143541](https://user-images.githubusercontent.com/21233725/89520367-524bd800-d810-11ea-9920-2d538d379217.jpg)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with a local py36 virtual environment whose requirements include gunicorn, then run fun build. Inspect the generated .fun/python/bin/gunicorn and the bootstrap startup path; done means the packaged launcher no longer points to the local virtualenv interpreter and bootstrap can start the project.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.