Skip to content

Commit 53123f6

Browse files
committed
Try fix venv setup
1 parent 8cdd19e commit 53123f6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Lib/venv/__init__.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def setup_python(self, context):
382382
# the executables.
383383
link_sources.update({
384384
f: os.path.join(dirname, f) for f in os.listdir(dirname)
385-
if os.path.normcase(f).startswith(('python', 'vcruntime'))
385+
if os.path.normcase(f).startswith(('python', 'libpython', 'vcruntime'))
386386
and os.path.normcase(os.path.splitext(f)[1]) == '.dll'
387387
})
388388

@@ -412,13 +412,6 @@ def setup_python(self, context):
412412
except OSError:
413413
logger.warning('Unable to copy %r to %r', src, dest)
414414

415-
if os.name == 'posix' or (os.name == "nt" and 'mingw' in sys.version.lower()):
416-
# copy from python/pythonw so the venvlauncher magic in symlink_or_copy triggers
417-
copier = self.symlink_or_copy
418-
copier(os.path.join(dirname, 'python.exe'), os.path.join(binpath, 'python3.exe'))
419-
copier(os.path.join(dirname, 'python.exe'), os.path.join(binpath, 'python%d.%d.exe' % sys.version_info[:2]))
420-
copier(os.path.join(dirname, 'pythonw.exe'), os.path.join(binpath, 'python3w.exe'))
421-
422415
if sysconfig.is_python_build():
423416
# copy init.tcl
424417
for root, dirs, files in os.walk(context.python_dir):

0 commit comments

Comments
 (0)