lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

module files should not start with python shebang line #98

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
rpmlint complains about this when building a package:

python-couchdb.noarch: E: non-executable-script
/usr/lib/python2.6/site-packages/couchdb/json.py 0644 /usr/bin/env
python-couchdb.noarch: E: non-executable-script
/usr/lib/python2.6/site-packages/couchdb/tools/dump.py 0644 /usr/bin/env
python-couchdb.noarch: E: non-executable-script
/usr/lib/python2.6/site-packages/couchdb/tools/replication_helper.py 0644
/usr/bin/env
python-couchdb.noarch: E: non-executable-script
/usr/lib/python2.6/site-packages/couchdb/view.py 0644 /usr/bin/env
python-couchdb.noarch: E: non-executable-script
/usr/lib/python2.6/site-packages/couchdb/tools/load.py 0644 /usr/bin/env
python-couchdb.noarch: E: non-executable-script
/usr/lib/python2.6/site-packages/couchdb/tools/replication_helper_test.py
0644 /usr/bin/env

This is because they all start with a python shebang line, when in fact
they are regular modules, not executables, and should not contain the
shebang line.

Original issue reported on code.google.com by svsam...@gmail.com on 30 Oct 2009 at 9:18

GoogleCodeExporter commented 8 years ago
I've pushed changes in rf392a741227c to fix some of these: it makes 
couchdb/json.py
not have a shebang and gives +x permissions to couchdb/tools/load.py and
couchdb/tools/dump.py. couchdb/view.py and couchdb/tools/replication*.py are 
actually
scripts and already have executable permissions, so something else is changing 
those.

Original comment by djc.ochtman on 8 Dec 2009 at 5:12