[Zope-dev] /usr/local/bin/python in Zope 2.7

Eugene Morozov jmv-lists@linux-ink.ru
Thu, 10 Jul 2003 16:57:46 +0400


Hello!
Several scripts in Zope 2.7 from cvs has "#! /usr/local/bin/python"
string at the beginning. When building zope rpm package, rpm thinks
that resulting binary package should depend on
/usr/local/bin/python. So I've made a simple patch which fixes this:
diff -ruN Zope.orig/lib/python/Products/ZGadflyDA/gadfly/gfinstall.py Zope/lib/python/Products/ZGadflyDA/gadfly/gfinstall.py
--- Zope.orig/lib/python/Products/ZGadflyDA/gadfly/gfinstall.py	1999-07-28 20:36:08.000000000 +0400
+++ Zope/lib/python/Products/ZGadflyDA/gadfly/gfinstall.py	2003-07-10 16:46:23.000000000 +0400
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#!/usr/bin/env python
 
 """Gadfly installation script.
 
diff -ruN Zope.orig/lib/python/Products/ZGadflyDA/gadfly/kjpylint.py Zope/lib/python/Products/ZGadflyDA/gadfly/kjpylint.py
--- Zope.orig/lib/python/Products/ZGadflyDA/gadfly/kjpylint.py	1999-07-28 20:36:12.000000000 +0400
+++ Zope/lib/python/Products/ZGadflyDA/gadfly/kjpylint.py	2003-07-10 16:46:43.000000000 +0400
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#!/usr/bin/env python
 """python lint using kwParsing
 
 The goal of this module/filter is to help find
diff -ruN Zope.orig/lib/python/ZConfig/scripts/zconfig Zope/lib/python/ZConfig/scripts/zconfig
--- Zope.orig/lib/python/ZConfig/scripts/zconfig	2003-04-30 22:05:08.000000000 +0400
+++ Zope/lib/python/ZConfig/scripts/zconfig	2003-07-10 16:47:15.000000000 +0400
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
 ##############################################################################
 #
 # Copyright (c) 2003 Zope Corporation and Contributors.
diff -ruN Zope.orig/lib/python/ZServer/medusa/http_server.py Zope/lib/python/ZServer/medusa/http_server.py
--- Zope.orig/lib/python/ZServer/medusa/http_server.py	2003-03-19 00:15:17.000000000 +0300
+++ Zope/lib/python/ZServer/medusa/http_server.py	2003-07-10 16:47:38.000000000 +0400
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python
+#! /usr/bin/env python
 # -*- Mode: Python; tab-width: 4 -*-
 #
 #	Author: Sam Rushing <rushing@nightmare.com>
diff -ruN Zope.orig/lib/python/ZServer/medusa/test/asyn_http_bench.py Zope/lib/python/ZServer/medusa/test/asyn_http_bench.py
--- Zope.orig/lib/python/ZServer/medusa/test/asyn_http_bench.py	2003-03-19 00:16:49.000000000 +0300
+++ Zope/lib/python/ZServer/medusa/test/asyn_http_bench.py	2003-07-10 16:48:13.000000000 +0400
@@ -1,4 +1,4 @@
-#! /usr/local/bin/python1.4
+#! /usr/bin/env python
 # -*- Mode: Python; tab-width: 4 -*-
 
 import asyncore