diff options
author | Tomas Hrnciar <thrnciar@redhat.com> | 2020-04-02 10:10:12 +0200 |
---|---|---|
committer | Tomas Hrnciar <thrnciar@redhat.com> | 2020-04-09 10:09:02 +0200 |
commit | ee7eb3ea06a5d95be4bc82e1f15df2e96fd24ff9 (patch) | |
tree | 9e19bac2648682164a7d84afc71ca084d599eeb4 | |
parent | 3fe6a83776843a46f20c2e5587afcffe05e03b39 (diff) | |
download | appdirs-ee7eb3ea06a5d95be4bc82e1f15df2e96fd24ff9.tar.gz |
Remove shebang from nonexecutable script
When packaging appdirs and pip (which bundles it) in Fedora, we have realized
that there is a nonexecuatble file with a shebang line.
It seems that the primary purpose of this file is to be imported from Python
code or to be executed via `python appdirs.py` or `python -m
appdirs` and hence the shebang appears to be unnecessary.
Shebangs are hard to handle when doing downstream packaging, because it makes
sense for upstream to use `#!/usr/bin/env python` while in the RPM package, we
need to avoid that and use a more specific interpreter. Since the shebang was
unused, I propose to remove it to avoid the problems.
-rw-r--r-- | appdirs.py | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2005-2010 ActiveState Software Inc. # Copyright (c) 2013 Eddy Petrișor |