summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Hrnciar <thrnciar@redhat.com>2020-04-02 10:10:12 +0200
committerTomas Hrnciar <thrnciar@redhat.com>2020-04-09 10:09:02 +0200
commitee7eb3ea06a5d95be4bc82e1f15df2e96fd24ff9 (patch)
tree9e19bac2648682164a7d84afc71ca084d599eeb4
parent3fe6a83776843a46f20c2e5587afcffe05e03b39 (diff)
downloadappdirs-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.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/appdirs.py b/appdirs.py
index 975e9bf..bd5357e 100644
--- a/appdirs.py
+++ b/appdirs.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2005-2010 ActiveState Software Inc.
# Copyright (c) 2013 Eddy Petrișor