diff options
| author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-03-15 14:36:55 -0400 |
|---|---|---|
| committer | Vitaly Babiy <vbabiy86@gmail.com> | 2011-03-15 14:55:46 -0400 |
| commit | 10ba3f3cc0d7a254dd72e2bb9557006da2f85e00 (patch) | |
| tree | bde202c836eaba0447b8c160c2e6e975d855f237 /setup.py | |
| parent | 56748c1f68812a8bc40d92f53fc87693ba5b4e83 (diff) | |
| download | virtualenv-10ba3f3cc0d7a254dd72e2bb9557006da2f85e00.tar.gz | |
Port to python3
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -7,7 +7,7 @@ try: except ImportError: from distutils.core import setup if sys.platform == 'win32': - print 'Note: without Setuptools installed you will have to use "python -m virtualenv ENV"' + print('Note: without Setuptools installed you will have to use "python -m virtualenv ENV"') kw = {} else: kw = {'scripts': ['scripts/virtualenv']} @@ -35,10 +35,17 @@ long_description = f.read().strip() long_description = long_description.split('split here', 1)[1] f.close() -if 'register' in sys.argv: +## A warning just for Ian (related to distribution): +try: + import getpass +except ImportError: + is_ianb = False +else: + is_ianb = getpass.getuser() == 'ianb' + +if is_ianb and 'register' in sys.argv: if 'hg tip\n~~~~~~' in long_description: - print >> sys.stderr, ( - "WARNING: hg tip is in index.txt") + sys.stderr.write("WARNING: hg tip is in index.txt\n") setup(name='virtualenv', version=version, |
