Edgewall Software

source: trunk/setup.py

Last change on this file was 17657, checked in by Jun Omae, 8 months ago

1.5.4dev: update copyright year to 2023 (refs #13402)

[skip ci]

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3#
4# Copyright (C) 2003-2023 Edgewall Software
5# All rights reserved.
6#
7# This software is licensed as described in the file COPYING, which
8# you should have received as part of this distribution. The terms
9# are also available at https://trac.edgewall.org/wiki/TracLicense.
10#
11# This software consists of voluntary contributions made by many
12# individuals. For the exact contribution history, see the revision
13# history and logs, available at https://trac.edgewall.org/log/.
14
15import sys
16
17from setuptools import setup
18
19
20min_python = (3, 5)
21if sys.version_info < min_python:
22 print("Trac requires Python %d.%d or later" % min_python)
23 sys.exit(1)
24
25extra = {}
26
27try:
28 import babel
29except ImportError:
30 pass
31else:
32 from trac.dist import get_l10n_trac_cmdclass
33 extra['cmdclass'] = get_l10n_trac_cmdclass()
34
35try:
36 import jinja2
37except ImportError:
38 print("Jinja2 is needed by Trac setup, pre-installing")
39 # give some context to the warnings we might get when installing Jinja2
40
41
42setup(**extra)
Note: See TracBrowser for help on using the repository browser.