~rlane/nova/lp773690

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: rlane at wikimedia
  • Date: 2011-04-29 22:30:40 UTC
  • mfrom: (382.1.655 nova)
  • Revision ID: rlane@wikimedia.org-20110429223040-i0x3ds9eqwrabyru
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#    License for the specific language governing permissions and limitations
17
17
#    under the License.
18
18
 
 
19
import gettext
19
20
import glob
20
21
import os
21
22
import subprocess
24
25
from setuptools import find_packages
25
26
from setuptools.command.sdist import sdist
26
27
 
 
28
# In order to run the i18n commands for compiling and
 
29
# installing message catalogs, we use DistUtilsExtra.
 
30
# Don't make this a hard requirement, but warn that
 
31
# i18n commands won't be available if DistUtilsExtra is
 
32
# not installed...
27
33
try:
28
 
    import DistUtilsExtra.auto
 
34
    from DistUtilsExtra.auto import setup
29
35
except ImportError:
30
 
    print >> sys.stderr, 'To build nova you need '\
31
 
                         'https://launchpad.net/python-distutils-extra'
32
 
    sys.exit(1)
33
 
assert DistUtilsExtra.auto.__version__ >= '2.18',\
34
 
       'needs DistUtilsExtra.auto >= 2.18'
 
36
    from setuptools import setup
 
37
    print "Warning: DistUtilsExtra required to use i18n builders. "
 
38
    print "To build nova with support for message catalogs, you need "
 
39
    print "  https://launchpad.net/python-distutils-extra >= 2.18"
35
40
 
 
41
gettext.install('nova', unicode=1)
36
42
 
37
43
from nova.utils import parse_mailmap, str_dict_replace
38
44
from nova import version
100
106
    package_data += [(destdir, files)]
101
107
    return package_data
102
108
 
103
 
DistUtilsExtra.auto.setup(name='nova',
 
109
setup(name='nova',
104
110
      version=version.canonical_version_string(),
105
111
      description='cloud computing fabric controller',
106
112
      author='OpenStack',