Fixes setup compatibility issue on Windows

Fixes Bug #1052161

"python setup.py build" fails on Windows due to a hardcoded shell path:
/bin/sh

setup.py updated using openstack-common/update.py

Change-Id: If0ae835aeada8769e46dddf4f3c2f2edfdfbc5fe
This commit is contained in:
Alessandro Pilotti
2012-11-05 18:19:13 +02:00
parent a8e88aa340
commit 16aafa728e
2 changed files with 61 additions and 47 deletions
+1 -2
View File
@@ -20,7 +20,6 @@ Utilities for consuming the auto-generated versioninfo files.
import datetime
import pkg_resources
import os
import setup
@@ -107,7 +106,7 @@ class VersionInfo(object):
versioninfo = "%s/versioninfo" % self.package
try:
raw_version = pkg_resources.resource_string(requirement,
versioninfo)
versioninfo)
self.version = self._newer_version(raw_version.strip())
except (IOError, pkg_resources.DistributionNotFound):
self.version = self._generate_version()