~ubuntu-branches/ubuntu/saucy/spectacle/saucy

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2010-08-24 11:36:43 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100824113643-fnbml7ahb93son04
Tags: 0.19-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
import os, sys
4
4
from distutils.core import setup
 
5
try:
 
6
    import setuptools
 
7
    # enable "setup.py develop", optional
 
8
except ImportError:
 
9
    pass
5
10
 
6
 
if 'MAKEFLAGS' not in os.environ:
7
 
    repl = raw_input('WARNING: Please use `make install` for installation, continue(y/N)? ')
8
 
    if repl != 'y':
9
 
        sys.exit(1)
 
11
if 'install' in sys.argv and \
 
12
   'MAKEFLAGS' not in os.environ and \
 
13
   'RPM_BUILD_ROOT' not in os.environ:
 
14
        repl = raw_input('WARNING: Please use `make install` for installation, continue(y/N)? ')
 
15
        if repl != 'y':
 
16
            sys.exit(1)
10
17
 
11
18
# For debian based systems, '--install-layout=deb' is needed after 2.6
12
19
if sys.version_info[:2] <= (2, 5) and '--install-layout=deb' in sys.argv: