Skip to content

Use a canonical Python3 version #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion bin/bbs_build.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3.8
#!/usr/bin/env python3

from checkversion import checkversion
checkversion()

from pylibinit import addlibpath
addlibpath.add_lib_path()
Expand Down
5 changes: 4 additions & 1 deletion bin/bbs_build_env.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3.8
#!/usr/bin/env python3

from checkversion import checkversion
checkversion()

from pylibinit import addlibpath

Expand Down
6 changes: 4 additions & 2 deletions bin/bbs_make_vscode.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from checkversion import checkversion
checkversion()

import os
import subprocess
import sys


def quotedCMakeArgValue(value):
if value in ["0", "OFF", "NO", "FALSE", "N"]:
return "false"
Expand Down
5 changes: 4 additions & 1 deletion bin/bde_build_env.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3.8
#!/usr/bin/env python3

from checkversion import checkversion
checkversion()

from pylibinit import addlibpath

Expand Down
5 changes: 4 additions & 1 deletion bin/bde_make_vscode.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from checkversion import checkversion
checkversion()

import os
import subprocess
Expand Down
5 changes: 4 additions & 1 deletion bin/bde_runtest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env python3.8
#!/usr/bin/env python3

from checkversion import checkversion
checkversion()

from pylibinit import addlibpath

Expand Down
5 changes: 5 additions & 0 deletions bin/checkversion.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import sys

def checkversion():
if sys.version_info[0] == 3 and sys.version_info[1] < 8:
raise Exception("Must be using at least Python 3.8")
4 changes: 3 additions & 1 deletion bin/cmake_build.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python3.8
#!/usr/bin/env python3

from checkversion import checkversion
checkversion()

import argparse
import collections
Expand Down