Skip to content

Commit

Permalink
Merge pull request #129 from techtonik/develop
Browse files Browse the repository at this point in the history
Copy include dir into venv under Windows.
  • Loading branch information
Carl Meyer committed May 18, 2011
2 parents 8ce0149 + 548f095 commit cf9d09b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion virtualenv.py
Expand Up @@ -41,6 +41,7 @@

is_jython = sys.platform.startswith('java')
is_pypy = hasattr(sys, 'pypy_version_info')
is_win = (sys.platform == 'win32')
abiflags = getattr(sys, 'abiflags', '')

if is_pypy:
Expand Down Expand Up @@ -1039,7 +1040,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear):
logger.info('Deleting %s' % site_packages_filename)
os.unlink(site_packages_filename)

if is_pypy:
if is_pypy or is_win:
stdinc_dir = join(prefix, 'include')
else:
stdinc_dir = join(prefix, 'include', py_version + abiflags)
Expand Down

0 comments on commit cf9d09b

Please sign in to comment.