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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
47314351
Commit
47314351
authored
Mar 11, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run embedding test with current Python, not system Python
parent
8fec4cea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Demos/embed/Makefile
Demos/embed/Makefile
+6
-5
No files found.
Demos/embed/Makefile
View file @
47314351
# Makefile for creating our standalone Cython program
PYVERSION
=
$(
shell
python
-c
"import sys; print(sys.version[:3]
)
"
)
PYPREFIX
=
$(
shell
python
-c
"import sys; print(sys.prefix
)
"
)
LINKFORSHARED
=
$(
shell
python
-c
"import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LINKFORSHARED'
))
"
)
PYTHON
=
python
PYVERSION
=
$(
shell
(
$PYTHON
)
-c
"import sys; print(sys.version[:3]
)
"
)
PYPREFIX
=
$(
shell
$(PYTHON)
-c
"import sys; print(sys.prefix
)
"
)
LINKFORSHARED
=
$(
shell
$(PYTHON)
-c
"import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LINKFORSHARED'
))
"
)
INCLUDES
=
-I
$(PYPREFIX)
/include/python
$(PYVERSION)
embedded
:
embedded.o
...
...
@@ -11,7 +12,7 @@ embedded.o: embedded.c
gcc
-c
$^
$(INCLUDES)
embedded.c
:
embedded.pyx
@
python
../../cython.py
--embed
embedded.pyx
@
$(PYTHON)
../../cython.py
--embed
embedded.pyx
all
:
embedded
...
...
@@ -21,4 +22,4 @@ clean:
test
:
clean all
./embedded
>
test.output
python
assert_equal.py embedded.output test.output
$(PYTHON)
assert_equal.py embedded.output test.output
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