summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe D'Andrea <jdandrea@research.att.com>2017-09-11 14:01:22 -0400
committerJoe D'Andrea <jdandrea@research.att.com>2017-09-21 14:54:29 +0000
commit07de844615eaec520d817558462cda5f91f9b7b8 (patch)
tree9cf5eac349e516ace23eb2629a933691dbef3544
parent55ef3943bcb0a8bfc7af35ed9eb3f5b523c75daa (diff)
downloadpbr-07de844615eaec520d817558462cda5f91f9b7b8.tar.gz
Remove win32/nt checks for wrapper script gen
It now appears safe to remove the Windows conditions that skip executing override_get_script_args() and install_wrapper_scripts(). Having demonstrated that bdist_wheel works, it should now work for sdist too, and experiments do indeed appear to bear that out. Change-Id: Ic243a3ccd3aee0dcb17d6419bc44271f5ebe5551 Closes-Bug: 1521407
-rw-r--r--pbr/packaging.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py
index c8eedbd..6753dc3 100644
--- a/pbr/packaging.py
+++ b/pbr/packaging.py
@@ -390,8 +390,6 @@ class LocalDevelop(develop.develop):
command_name = 'develop'
def install_wrapper_scripts(self, dist):
- if sys.platform == 'win32':
- return develop.develop.install_wrapper_scripts(self, dist)
if not self.exclude_scripts:
for args in override_get_script_args(dist):
self.write_script(*args)
@@ -445,13 +443,7 @@ class LocalInstallScripts(install_scripts.install_scripts):
# entry-points listed for this package.
return
- if os.name != 'nt':
- get_script_args = override_get_script_args
- else:
- get_script_args = easy_install.get_script_args
- executable = '"%s"' % executable
-
- for args in get_script_args(dist, executable, is_wininst):
+ for args in override_get_script_args(dist, executable, is_wininst):
self.write_script(*args)