From eebdac3b68b17fcc897466178f1484eb50e21246 Mon Sep 17 00:00:00 2001 From: William Stein Date: Sat, 28 Jul 2007 13:48:10 -0700 Subject: [PATCH] More Pyrex --> Cython conversions. --- Cython/Compiler/CmdLine.py | 6 +++--- Cython/Compiler/Main.py | 12 ++++++------ Cython/Compiler/Scanning.py | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cython/Compiler/CmdLine.py b/Cython/Compiler/CmdLine.py index e3c603bc..e0bd06bb 100644 --- a/Cython/Compiler/CmdLine.py +++ b/Cython/Compiler/CmdLine.py @@ -6,10 +6,10 @@ import sys import Options usage = """\ -Cython (http://cython.org) is for compiling code written in the Cython -language. Cython is based on Pyrex by Greg Ewing. +Cython (http://cython.org) is a compiler for code written in the +Cython language. Cython is based on Pyrex by Greg Ewing. -Usage: cython [options] sourcefile... +Usage: cython [options] sourcefile.pyx ... Options: -v, --version Display version number of cython compiler diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py index 719f027d..f665323e 100644 --- a/Cython/Compiler/Main.py +++ b/Cython/Compiler/Main.py @@ -1,10 +1,10 @@ # -# Pyrex Top Level +# Cython Top Level # import os, sys if sys.version_info[:2] < (2, 2): - print >>sys.stderr, "Sorry, Pyrex requires Python 2.2 or later" + print >>sys.stderr, "Sorry, Cython requires Python 2.2 or later" sys.exit(1) import os @@ -217,7 +217,7 @@ class Context: class CompilationOptions: """ - Options to the Pyrex compiler: + Options to the Cython compiler: show_version boolean Display version number use_listing_file boolean Generate a .lis file @@ -243,7 +243,7 @@ class CompilationOptions: class CompilationResult: """ - Results from the Pyrex compiler: + Results from the Cython compiler: c_file string or None The generated C source file h_file string or None The generated C header file @@ -267,7 +267,7 @@ def compile(source, options = None, c_compile = 0, c_link = 0): """ compile(source, options = default_options) - Compile the given Pyrex implementation file and return + Compile the given Cython implementation file and return a CompilationResult object describing what was produced. """ if not options: @@ -296,7 +296,7 @@ def main(command_line = 0): options = default_options sources = args if options.show_version: - print >>sys.stderr, "Pyrex version %s" % Version.version + print >>sys.stderr, "Cython version %s" % Version.version context = Context(options.include_path) for source in sources: try: diff --git a/Cython/Compiler/Scanning.py b/Cython/Compiler/Scanning.py index 1c733450..a0de4bc3 100644 --- a/Cython/Compiler/Scanning.py +++ b/Cython/Compiler/Scanning.py @@ -10,7 +10,7 @@ import stat import sys from time import time -from Pyrex import Plex +from Cython import Plex from Cython.Plex import Scanner from Cython.Plex.Errors import UnrecognizedInput from Errors import CompileError, error -- 2.26.2