mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #21197: Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.
This commit is contained in:
parent
a0d107324d
commit
1e53f8d9bf
3 changed files with 22 additions and 2 deletions
|
@ -9,6 +9,7 @@ import ensurepip
|
|||
import os
|
||||
import os.path
|
||||
import shutil
|
||||
import struct
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
|
@ -87,6 +88,14 @@ class BasicTest(BaseTest):
|
|||
self.isdir(self.bindir)
|
||||
self.isdir(self.include)
|
||||
self.isdir(*self.lib)
|
||||
# Issue 21197
|
||||
p = self.get_env_file('lib64')
|
||||
conditions = ((struct.calcsize('P') == 8) and (os.name == 'posix') and
|
||||
(sys.platform != 'darwin'))
|
||||
if conditions:
|
||||
self.assertTrue(os.path.islink(p))
|
||||
else:
|
||||
self.assertFalse(os.path.exists(p))
|
||||
data = self.get_text_file_contents('pyvenv.cfg')
|
||||
if sys.platform == 'darwin' and ('__PYVENV_LAUNCHER__'
|
||||
in os.environ):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue