Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #30149: When creating the Python venv on Cygwin make sure to copy
Browse files Browse the repository at this point in the history
the python executable instead of creating symlinks
  • Loading branch information
embray committed Jul 16, 2020
1 parent 4427340 commit f7213c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/bin/sage-venv
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Adapted from examples in https://docs.python.org/3/library/venv.html

import venv
import os
import sys
import argparse

parser = argparse.ArgumentParser(prog=__name__,
Expand Down Expand Up @@ -37,8 +37,8 @@ options = parser.parse_args()
if options.upgrade and options.clear:
raise ValueError('you cannot supply --upgrade and --clear together.')

if os.name == 'nt':
# default for Windows
if sys.platform == 'cygwin':
# default for Cygwin; see https://trac.sagemath.org/ticket/30149
use_symlinks = False
else:
# default for posix
Expand Down

0 comments on commit f7213c5

Please sign in to comment.