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
ac5bf544
Commit
ac5bf544
authored
Oct 28, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for --embedded mode.
parent
3a2a66e2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
Demos/embed/Makefile
Demos/embed/Makefile
+10
-6
Demos/embed/assert_equal.py
Demos/embed/assert_equal.py
+6
-0
Demos/embed/embedded.output
Demos/embed/embedded.output
+2
-0
No files found.
Demos/embed/Makefile
View file @
ac5bf544
# Makefile for creating our standalone Cython program
# Makefile for creating our standalone Cython program
PYVERSION
=
2.3
PYVERSION
=
$(
shell
python
-c
"import sys; print sys.version[:3]"
)
PYPREFIX
=
/usr
PYPREFIX
=
$(
shell
python
-c
"import sys; print sys.prefix"
)
INCLUDES
=
-I
$(PYPREFIX)
/include/python
$(PYVERSION)
INCLUDES
=
-I
$(PYPREFIX)
/include/python
$(PYVERSION)
embedded
:
embedded.o
embedded
:
embedded.o
...
@@ -17,3 +17,7 @@ all: embedded
...
@@ -17,3 +17,7 @@ all: embedded
clean
:
clean
:
@
echo
Cleaning Demos/embed
@
echo
Cleaning Demos/embed
@
rm
-f
*
~
*
.o
*
.so core core.
*
*
.c embedded
@
rm
-f
*
~
*
.o
*
.so core core.
*
*
.c embedded
test
:
clean all
./embedded
>
test.output
python assert_equal.py embedded.output test.output
Demos/embed/assert_equal.py
0 → 100644
View file @
ac5bf544
import
sys
if
open
(
sys
.
argv
[
1
]).
read
()
!=
open
(
sys
.
argv
[
2
]).
read
():
print
"Files differ"
sys
.
exit
(
1
)
else
:
print
"Files identical"
Demos/embed/embedded.output
0 → 100644
View file @
ac5bf544
__main__
Hi, I'm embedded.
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