summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorMasanori Itoh <itoumsn@nttdata.co.jp>2011-04-29 22:25:28 +0900
committerMasanori Itoh <itoumsn@nttdata.co.jp>2011-04-29 22:25:28 +0900
commitaaa34f9e4b49db4f1cda4fc259c8f2c0716e3850 (patch)
tree25e863e25c50a534b876d15e67023b6005283bad /setup.py
parent231842087b486638b62e906906392ec9c8e88925 (diff)
parent28f41bf8bd385ec423d1f5c1ec2798e60832117f (diff)
downloadnova-aaa34f9e4b49db4f1cda4fc259c8f2c0716e3850.tar.gz
nova-aaa34f9e4b49db4f1cda4fc259c8f2c0716e3850.tar.xz
nova-aaa34f9e4b49db4f1cda4fc259c8f2c0716e3850.zip
Rebased to trunk rev 1035.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/setup.py b/setup.py
index 194b55183..c165f40d7 100644
--- a/setup.py
+++ b/setup.py
@@ -25,14 +25,18 @@ import sys
from setuptools import find_packages
from setuptools.command.sdist import sdist
+# In order to run the i18n commands for compiling and
+# installing message catalogs, we use DistUtilsExtra.
+# Don't make this a hard requirement, but warn that
+# i18n commands won't be available if DistUtilsExtra is
+# not installed...
try:
- import DistUtilsExtra.auto
+ from DistUtilsExtra.auto import setup
except ImportError:
- print >> sys.stderr, 'To build nova you need '\
- 'https://launchpad.net/python-distutils-extra'
- sys.exit(1)
-assert DistUtilsExtra.auto.__version__ >= '2.18',\
- 'needs DistUtilsExtra.auto >= 2.18'
+ from setuptools import setup
+ print "Warning: DistUtilsExtra required to use i18n builders. "
+ print "To build nova with support for message catalogs, you need "
+ print " https://launchpad.net/python-distutils-extra >= 2.18"
gettext.install('nova', unicode=1)
@@ -102,7 +106,7 @@ def find_data_files(destdir, srcdir):
package_data += [(destdir, files)]
return package_data
-DistUtilsExtra.auto.setup(name='nova',
+setup(name='nova',
version=version.canonical_version_string(),
description='cloud computing fabric controller',
author='OpenStack',