Skip to content

Commit 55c0bf7

Browse files
committed
Windows: select a default python interpreter
1 parent d4da349 commit 55c0bf7

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

coq_platform_make.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ source shell_scripts/init_safety_debug.sh
1515
source shell_scripts/init_paths.sh
1616
source shell_scripts/init_utilities.sh
1717
source shell_scripts/init_machine_type.sh
18+
source shell_scripts/init_select_python.sh
1819

1920
###################### SETTINGS #####################
2021

shell_scripts/init_select_python.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
###################### COPYRIGHT/COPYLEFT ######################
4+
5+
# (C) 2020 Michael Soegtrop
6+
7+
# Released to the public under the
8+
# Creative Commons CC0 1.0 Universal License
9+
# See https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt
10+
11+
###################### Select a python interperter #####################
12+
13+
# Cygwin stopped to have a /usr/bin/python symlink, but some build scripts
14+
# expect that there is *a* python.
15+
16+
if [[ "$OSTYPE" == cygwin ]]
17+
then
18+
ln -s -f /usr/bin/python2 /usr/bin/python
19+
fi

0 commit comments

Comments
 (0)