Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352722 - python.eclass: wrapper generator might want to support virtualenvs
Summary: python.eclass: wrapper generator might want to support virtualenvs
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-25 18:14 UTC by Chris
Modified: 2013-03-02 14:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2011-01-25 18:14:28 UTC
There is a popular tool for Python to create virtual python environments, in which packages can be installed. To make it work, it provides a python wrapper, which shadows the one in /usr/bin.

The problem with the scripts being generated by python_generate_wrapper_scripts() call /usr/bin/<active interpreter> directly.

Line 64:
    python_interpreter_path = "/usr/bin/%s" % EPYTHON

I have resolved my issues to make all those wrappers use my custom interpreter by removing '/usr/bin/' from that line.

Reproducible: Always

Steps to Reproduce:
emerge pylint -av
vim /usr/bin/pylint
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-02 14:22:33 UTC
No new features will be added to python.eclass. However, if there's something we can do about virtualenvs to help you, please file a bug against python-r1 and be more detailed about it.