Skip to content

Commit

Permalink
Merge pull request #2421 from radhermit/venv-install-headers
Browse files Browse the repository at this point in the history
Install headers into the project name subdirectory in virtualenvs
  • Loading branch information
dstufft committed Apr 7, 2015
2 parents 3d78b82 + 882cd35 commit acdaee3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pip/req/req_install.py
Expand Up @@ -835,13 +835,10 @@ def install(self, install_options, global_options=(), root=None):
install_args += ["--no-compile"]

if running_under_virtualenv():
# FIXME: I'm not sure if this is a reasonable location;
# probably not but we can't put it in the default location, as
# that is a virtualenv symlink that isn't writable
py_ver_str = 'python' + sysconfig.get_python_version()
install_args += ['--install-headers',
os.path.join(sys.prefix, 'include', 'site',
py_ver_str)]
py_ver_str, self.name)]
logger.info('Running setup.py install for %s', self.name)
with indent_log():
call_subprocess(
Expand Down

0 comments on commit acdaee3

Please sign in to comment.