|
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 |
|
|---|
| 15 | import sys
|
|---|
| 16 |
|
|---|
| 17 | from setuptools import setup
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 | min_python = (3, 5)
|
|---|
| 21 | if sys.version_info < min_python:
|
|---|
| 22 | print("Trac requires Python %d.%d or later" % min_python)
|
|---|
| 23 | sys.exit(1)
|
|---|
| 24 |
|
|---|
| 25 | extra = {}
|
|---|
| 26 |
|
|---|
| 27 | try:
|
|---|
| 28 | import babel
|
|---|
| 29 | except ImportError:
|
|---|
| 30 | pass
|
|---|
| 31 | else:
|
|---|
| 32 | from trac.dist import get_l10n_trac_cmdclass
|
|---|
| 33 | extra['cmdclass'] = get_l10n_trac_cmdclass()
|
|---|
| 34 |
|
|---|
| 35 | try:
|
|---|
| 36 | import jinja2
|
|---|
| 37 | except 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 |
|
|---|
| 42 | setup(**extra)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.