Commit cd2a42e2 authored by Stefan Behnel's avatar Stefan Behnel

Remove some legacy attributes from Main.py.

parent c522a42e
...@@ -33,13 +33,8 @@ from . import Options ...@@ -33,13 +33,8 @@ from . import Options
from .Options import CompilationOptions, default_options from .Options import CompilationOptions, default_options
from .CmdLine import parse_command_line 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_]*)*$") 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( standard_include_path = os.path.abspath(
os.path.join(os.path.dirname(os.path.dirname(__file__)), 'Includes')) os.path.join(os.path.dirname(os.path.dirname(__file__)), 'Includes'))
...@@ -675,7 +670,8 @@ def main(command_line = 0): ...@@ -675,7 +670,8 @@ def main(command_line = 0):
sources = args sources = args
if options.show_version: 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!="": if options.working_path!="":
os.chdir(options.working_path) os.chdir(options.working_path)
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment