File: dual-python-build.diff

package info (click to toggle)
postgresql-multicorn 1.3.4-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,428 kB
  • sloc: ansic: 3,252; python: 2,227; sql: 755; makefile: 282; sh: 35
file content (18 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Hack preflight-check.sh to allow Python versions other than 2.7
Author: Markus Wanner <markus@bluegap.ch>
Forwarded: no
Last-Update: 2014-07-06

--- a/preflight-check.sh
+++ b/preflight-check.sh
@@ -16,9 +16,4 @@ if [ ! -x "${PG_CONFIG}" ]; then
   exit 1
 fi
 
-if [ ${PY_VERSION} != "2.7" ] && [ ${PY_VERSION} != "2.6" ]; then
-  if [ ${PY27_VERSION} != "2.7" ]; then
-    echo "Found Python $PY_VERSION, but 2.6 is required."
-    exit 2
-  fi
-fi
+echo "Using python $PY_VERSION."