File: _astropy_init.py

package info (click to toggle)
specreduce-data 0%2Bgit2021.11.18-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 36,064 kB
  • sloc: python: 211; makefile: 109
file content (25 lines) | stat: -rw-r--r-- 613 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Licensed under a 3-clause BSD style license - see LICENSE.rst

__all__ = ['__version__']

# this indicates whether or not we are in the package's setup.py
try:
    _ASTROPY_SETUP_
except NameError:
    import builtins
    builtins._ASTROPY_SETUP_ = False

try:
    from .version import version as __version__
except ImportError:
    __version__ = ''


if not _ASTROPY_SETUP_:  # noqa
    import os

    # Create the test function for self test
    from astropy.tests.runner import TestRunner
    test = TestRunner.make_test_runner_in(os.path.dirname(__file__))
    test.__test__ = False
    __all__ += ['test']