@@ -174,6 +174,7 @@ def create_if_needed(d):
174174 context .python_exe = exename
175175 binpath = self ._venv_path (env_dir , 'scripts' )
176176 libpath = self ._venv_path (env_dir , 'purelib' )
177+ platlibpath = self ._venv_path (env_dir , 'platlib' )
177178
178179 # PEP 405 says venvs should create a local include directory.
179180 # See https://peps.python.org/pep-0405/#include-files
@@ -191,12 +192,8 @@ def create_if_needed(d):
191192 create_if_needed (incpath )
192193 context .lib_path = libpath
193194 create_if_needed (libpath )
194- # Issue 21197: create lib64 as a symlink to lib on 64-bit non-OS X POSIX
195- if ((sys .maxsize > 2 ** 32 ) and (os .name == 'posix' ) and
196- (sys .platform != 'darwin' )):
197- link_path = os .path .join (env_dir , 'lib64' )
198- if not os .path .exists (link_path ): # Issue #21643
199- os .symlink ('lib' , link_path )
195+ context .platlib_path = platlibpath
196+ create_if_needed (platlibpath )
200197 context .bin_path = binpath
201198 context .bin_name = os .path .relpath (binpath , env_dir )
202199 context .env_exe = os .path .join (binpath , exename )
0 commit comments