Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
514d1d4c
Commit
514d1d4c
authored
Oct 03, 2009
by
Mark Lodato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
freeze: rename cython_freeze.py to cython_freeze
--HG-- rename : bin/cython_freeze.py => bin/cython_freeze
parent
7952364c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Demos/freeze/Makefile
Demos/freeze/Makefile
+1
-1
Demos/freeze/README.rst
Demos/freeze/README.rst
+4
-4
bin/cython_freeze
bin/cython_freeze
+0
-0
No files found.
Demos/freeze/Makefile
View file @
514d1d4c
CC
=
gcc
CYTHON
=
./../bin/cython
CYTHON_FREEZE
=
../../bin/cython_freeze
.py
CYTHON_FREEZE
=
../../bin/cython_freeze
CFLAGS
=
-fPIC
-g
-O2
-Wall
-Wextra
CPPFLAGS
=
-I
/usr/include/python2.6
...
...
Demos/freeze/README.rst
View file @
514d1d4c
NAME
====
cython_freeze
.py
- create a C file for embedding Cython modules
cython_freeze - create a C file for embedding Cython modules
SYNOPSIS
========
cython_freeze
.py
module [...]
cython_freeze module [...]
DESCRIPTION
===========
**cython_freeze
.py
** generates a C source file to embed a Python interpreter
**cython_freeze** generates a C source file to embed a Python interpreter
with one or more Cython modules built in. This allows one to create a single
executable from Cython code, without having to have separate shared objects
for each Cython module.
...
...
@@ -47,7 +47,7 @@ The provided Makefile creates an executable, *nCr*, using combinatorics as the
"main" module. It basically performs the following (ignoring the compiler
flags)::
$ cython_freeze
.py
combintorics cmath > nCr.c
$ cython_freeze combintorics cmath > nCr.c
$ cython combinatorics.pyx
$ cython cmath.pyx
$ gcc nCr.c -o nCr.o
...
...
bin/cython_freeze
.py
→
bin/cython_freeze
View file @
514d1d4c
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment