Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python.mod venv support #1647

Merged
merged 2 commits into from
Jul 12, 2024
Merged

python.mod venv support #1647

merged 2 commits into from
Jul 12, 2024

Conversation

thommey
Copy link
Member

@thommey thommey commented Jul 12, 2024

Found by: simple
Patch by: thommey

Default Python (no venv):

sys.base_exec_prefix='/usr'
sys._base_executable='/usr/bin/python3'
sys.base_prefix='/usr'
sys.exec_prefix='/usr'
sys.executable='/usr/bin/python3'
sys.prefix='/usr'
sys.path =['/home/bot/eggdrop', '/usr/lib/python311.zip', '/usr/lib/python3.11', '/usr/lib/python3.11/lib-dynload', '/usr/local/lib/python3.11/dist-packages', '/usr/lib/python3/dist-packages']

Python with venv:

sys.base_exec_prefix='/usr'
sys._base_executable='/usr/bin/python3.11'
sys.base_prefix='/usr'
sys.exec_prefix='/home/bot/eggdrop/venv'
sys.executable='/home/bot/eggdrop/venv/bin/python3'
sys.prefix='/home/bot/eggdrop/venv'
sys.path =['/home/bot/eggdrop', '/usr/lib/python311.zip', '/usr/lib/python3.11', '/usr/lib/python3.11/lib-dynload', '/home/bot/eggdrop/venv/lib/python3.11/site-packages']

Eggdrop before this PR:

Module loaded: python
sys.base_exec_prefix='/usr'
sys._base_executable=''
sys.base_prefix='/usr'
sys.exec_prefix='/usr'
sys.executable=''
sys.prefix='/usr'
sys.path =['/usr/lib/python311.zip', '/usr/lib/python3.11', '/usr/lib/python3.11/lib-dynload', '/usr/local/lib/python3.11/dist-packages', '/usr/lib/python3/dist-packages', '.']

Eggdrop after this PR:

Module loaded: python
sys.base_exec_prefix='/usr'
sys._base_executable='/usr/bin/python3.11'
sys.base_prefix='/usr'
sys.exec_prefix='/home/bot/eggdrop/venv'
sys.executable='/home/bot/eggdrop/venv/bin/python'
sys.prefix='/home/bot/eggdrop/venv'
sys.path =['/usr/lib/python311.zip', '/usr/lib/python3.11', '/usr/lib/python3.11/lib-dynload', '/home/bot/eggdrop/venv/lib/python3.11/site-packages', '.']

@thommey thommey marked this pull request as ready for review July 12, 2024 21:14
@vanosg vanosg added the Python label Jul 12, 2024
@vanosg vanosg added this to the v1.10.0 milestone Jul 12, 2024
@vanosg vanosg merged commit a49c225 into develop Jul 12, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants