/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Jelmer Vernooij
  • Date: 2020-02-21 04:28:46 UTC
  • mfrom: (7494 work)
  • mto: This revision was merged to the branch mainline in revision 7496.
  • Revision ID: jelmer@jelmer.uk-20200221042846-r8lzqu0jetkw772i
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
import copy
13
13
import glob
14
14
 
15
 
if sys.version_info < (2, 7):
16
 
    sys.stderr.write("[ERROR] Not a supported Python version. Need 2.7+\n")
 
15
if sys.version_info < (3, 5):
 
16
    sys.stderr.write("[ERROR] Not a supported Python version. Need 3.5+\n")
17
17
    sys.exit(1)
18
18
 
19
19
 
64
64
        ],
65
65
    'install_requires': [
66
66
        'configobj',
67
 
        'six>=1.9.0',
68
67
        'patiencediff',
69
68
        # Technically, Breezy works without these two dependencies too. But there's
70
69
        # no way to enable them by default and let users opt out.
81
80
    ],
82
81
}
83
82
 
84
 
if sys.version_info[0] == 2:
85
 
    META_INFO['install_requires'].append('scandir')
86
 
 
87
83
# The list of packages is automatically generated later. Add other things
88
84
# that are part of BREEZY here.
89
85
BREEZY = {}
598
594
        includes.append(module)
599
595
 
600
596
    additional_packages = set()
601
 
    if sys.version.startswith('2.7'):
602
 
        additional_packages.add('xml.etree')
603
 
    else:
604
 
        import warnings
605
 
        warnings.warn('Unknown Python version.\n'
606
 
                      'Please check setup.py script for compatibility.')
607
597
 
608
598
    # Although we currently can't enforce it, we consider it an error for
609
599
    # py2exe to report any files are "missing".  Such modules we know aren't