cython:source install on Debian

debiansept:~# wget
           => `Cython-0.10.2.tar.gz’
Connecting to||:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 2,554,091 (2.4M) [application/x-tar]

100%[=====================================================================>] 2,554,091      9.01K/s    ETA 00:00

01:12:00 (16.48 KB/s) – `Cython-0.10.2.tar.gz’ saved [2554091/2554091]

debiansept:~# tar xvfz Cython-0.10.2.tar.gz
debiansept:~# cd Cython-0.10.2
debiansept:~/Cython-0.10.2# python2.5 install
running build_ext
building ‘Cython.Plex.Scanners’ extension
creating build/temp.linux-i686-2.5
creating build/temp.linux-i686-2.5/root
creating build/temp.linux-i686-2.5/root/Cython-0.10.2
creating build/temp.linux-i686-2.5/root/Cython-0.10.2/Cython
creating build/temp.linux-i686-2.5/root/Cython-0.10.2/Cython/Plex
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c /root/Cython-0.10.2/Cython/Plex/Scanners.c -o build/temp.linux-i686-2.5/root/Cython-0.10.2/Cython/Plex/Scanners.o
gcc -pthread -shared -Wl,-O1 build/temp.linux-i686-2.5/root/Cython-0.10.2/Cython/Plex/Scanners.o -o build/lib.linux-i686-2.5/Cython/Plex/
running build_scripts
creating build/scripts-2.5
copying and adjusting bin/cython -> build/scripts-2.5
changing mode of build/scripts-2.5/cython from 644 to 755
running install_lib
copying build/lib.linux-i686-2.5/Cython/Plex/ -> /usr/lib/python2.5/site-packages/Cython/Plex
running install_scripts
copying build/scripts-2.5/cython -> /usr/bin
changing mode of /usr/bin/cython to 755
running install_egg_info
Removing /usr/lib/python2.5/site-packages/Cython-0.10.2-py2.5.egg-info
Writing /usr/lib/python2.5/site-packages/Cython-0.10.2-py2.5.egg-info

debiansept:~/Cython-0.10.2# python2.5
Python 2.5 (release25-maint, Jul 20 2008, 20:47:25)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> dir(Cython)
[‘ArrayType’, ‘CythonType’, ‘NULL’, ‘PointerType’, ‘Py_ssize_t’,
‘Shadow’, ‘StructType’, ‘UnionType’, ‘__builtins__’, ‘__doc__’,
‘__file__’, ‘__name__’, ‘__path__’, ‘address’, ‘array’, ‘bint’, ‘cast’,
‘char’, ‘compiled’, ‘declare’, ‘double’, ‘empty_decorator’, ‘float’,
‘float_types’, ‘gs’, ‘i’, ‘int’, ‘int_types’, ‘locals’, ‘long’, ‘longlong’,
‘name’, ‘other_types’, ‘p_Py_ssize_t’, ‘p_bint’, ‘p_char’, ‘p_double’, ‘p_float’,
‘p_int’, ‘p_long’, ‘p_longlong’, ‘p_short’, ‘p_void’, ‘pointer’, ‘pp_Py_ssize_t’,
‘pp_bint’, ‘pp_char’, ‘pp_double’, ‘pp_float’, ‘pp_int’, ‘pp_long’, ‘
pp_longlong’, ‘pp_short’, ‘pp_void’, ‘ppp_Py_ssize_t’, ‘ppp_bint’, ‘ppp_char’,
‘ppp_double’, ‘ppp_float’, ‘ppp_int’, ‘ppp_long’, ‘ppp_longlong’, ‘ppp_short’,
‘ppp_void’, ‘py_float’, ‘py_int’, ‘py_long’, ‘short’, ‘sizeof’, ‘struct’, ‘t’,
‘typedef’, ‘uPy_ssize_t’, ‘uchar’, ‘uint’, ‘ulong’, ‘ulonglong’, ‘union’,
‘ushort’, ‘void’]
>>> Cython.__path__
>>> Cython.__file__

debiansept:~/Cython-0.10.2# cython
Cython ( is a compiler for code written in the
Cython language.  Cython is based on Pyrex by Greg Ewing.

Usage: cython [options] sourcefile.pyx …

  -V, –version                  Display version number of cython compiler
  -l, –create-listing           Write error messages to a listing file
  -I, –include-dir <directory>  Search for include files in named directory
                                 (multiply include directories are allowed).
  -o, –output-file <filename>   Specify name of generated C file
  -r, –recursive                Recursively find and compile dependencies
  -t, –timestamps               Only compile newer source files (implied with -r)
  -f, –force                    Compile all source files (overrides implied -t)
  -q, –quiet                    Don’t print module names in recursive mode
  -v, –verbose                  Be verbose, print file names on multiple compilation
  -p, –embed-positions          If specified, the positions in Cython files of each
                                 function definition is embedded in its docstring.
  -z, –pre-import <module>      If specified, assume undeclared names in this
                                 module. Emulates the behavior of putting
                                 "from <module> import *" at the top of the file.
  –incref-local-binop           Force local an extra incref on local variables before
                                 performing any binary operations.
  –cleanup <level>              Release interned objects on python exit, for memory debugging.
                                 Level indicates aggressiveness, default 0 releases nothing.
  -w, –working <directory>      Sets the working directory for Cython (the directory modules
                                 are searched from)

  -D, –no-docstrings            Remove docstrings.
  -a, –annotate                 Produce a colorized HTML version of the source.
  –line-directives              Produce #line directives pointing to the .pyx source
  –cplus                        Output a c++ rather than c file.
  -X, –directive <name>=<value>[,<name=value,…] Overrides a compiler directive

カテゴリー: 未分類 パーマリンク


以下に詳細を記入するか、アイコンをクリックしてログインしてください。 ロゴ アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト / 変更 )

%s と連携中