You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2018/09/27 18:09:51 UTC
[couchdb] branch master updated: Explicit Python version in scripts
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/master by this push:
new fbb5588 Explicit Python version in scripts
fbb5588 is described below
commit fbb5588e2d023eb1bcf97cf9e44d483de2b2a62d
Author: Adrien Vergé <ad...@gmail.com>
AuthorDate: Mon Sep 24 16:19:09 2018 +0200
Explicit Python version in scripts
Recent Linux distributions start defaulting to Python 3, and require
ambiguous scripts to be more explicit.
For example building for Fedora 30 (not released yet) fails with:
ERROR: ambiguous python shebang in /opt/couchdb/bin/couchup:
#!/usr/bin/env python. Change it to python3 (or python2) explicitly.
So this commit changes the four Python scripts to use `python2`.
Note: They seem to be Python-3-compatible, but I couldn't be sure. If
you know they are, please tell me, I'll change it to `python3`.
---
build-aux/logfile-uploader.py | 2 +-
dev/run | 2 +-
rel/overlay/bin/couchup | 2 +-
test/javascript/run | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/build-aux/logfile-uploader.py b/build-aux/logfile-uploader.py
index c84a96a..a1ff7e4 100755
--- a/build-aux/logfile-uploader.py
+++ b/build-aux/logfile-uploader.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
diff --git a/dev/run b/dev/run
index a5d8fde..d105140 100755
--- a/dev/run
+++ b/dev/run
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
diff --git a/rel/overlay/bin/couchup b/rel/overlay/bin/couchup
index 2d01051..6532170 100755
--- a/rel/overlay/bin/couchup
+++ b/rel/overlay/bin/couchup
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
diff --git a/test/javascript/run b/test/javascript/run
index a3b3ab7..11f9fae 100755
--- a/test/javascript/run
+++ b/test/javascript/run
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of