Commit aaa870c1 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Hopefully a better setting for get_python_inc

Base off of sys.prefix instead of sys.executable, since in
virtualenvs the executable is in an extra bin/ directory.
parent 780c42f7
......@@ -69,7 +69,7 @@ def get_python_version():
def get_python_inc(plat_specific=0, prefix=None):
# Pyston change: this is the way we layout things internally:
return os.path.join(os.path.dirname(sys.executable), "from_cpython/Include")
return os.path.join(sys.prefix, "from_cpython/Include")
"""Return the directory containing installed Python header files.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment