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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user