diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2019-04-07 08:55:17 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-04-07 08:55:17 +0200 |
commit | cd2a42e2ce0248f0b251902707aba8b11ef7410d (patch) | |
tree | d8fb851e530411513c0b09c8e4bd770825ca05a0 | |
parent | c522a42e12ae15b9614f8ace5de8922d1b35c721 (diff) | |
download | cython-cd2a42e2ce0248f0b251902707aba8b11ef7410d.tar.gz |
Remove some legacy attributes from Main.py.
-rw-r--r-- | Cython/Compiler/Main.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py index a97ad9db2..1bb850026 100644 --- a/Cython/Compiler/Main.py +++ b/Cython/Compiler/Main.py @@ -33,13 +33,8 @@ from . import Options from .Options import CompilationOptions, default_options from .CmdLine import parse_command_line -from . import Version # legacy import needed by old PyTables versions -version = Version.version # legacy attribute - use "Cython.__version__" instead - module_name_pattern = re.compile(r"[A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*$") -verbose = 0 - standard_include_path = os.path.abspath( os.path.join(os.path.dirname(os.path.dirname(__file__)), 'Includes')) @@ -675,7 +670,8 @@ def main(command_line = 0): sources = args if options.show_version: - sys.stderr.write("Cython version %s\n" % version) + from .. import __version__ + sys.stderr.write("Cython version %s\n" % __version__) if options.working_path!="": os.chdir(options.working_path) try: |