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
Gwenaël Samain
cython
Commits
48358568
Commit
48358568
authored
Jul 23, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
numpy headers in demo setup.py
parent
79ce479c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Demos/setup.py
Demos/setup.py
+7
-1
No files found.
Demos/setup.py
View file @
48358568
...
...
@@ -4,6 +4,12 @@ from distutils.core import setup
from
distutils.extension
import
Extension
from
Cython.Distutils
import
build_ext
try
:
from
numpy.distutils.misc_util
import
get_numpy_include_dirs
numpy_include_dirs
=
get_numpy_include_dirs
()
except
:
numpy_include_dirs
=
[]
ext_modules
=
[
Extension
(
"primes"
,
[
"primes.pyx"
]),
Extension
(
"spam"
,
[
"spam.pyx"
]),
...
...
@@ -11,7 +17,7 @@ ext_modules=[
for
file
in
glob
.
glob
(
"*.pyx"
):
if
file
!=
"numeric_demo.pyx"
:
ext_modules
.
append
(
Extension
(
file
[:
-
4
],
[
file
]))
ext_modules
.
append
(
Extension
(
file
[:
-
4
],
[
file
]
,
include_dirs
=
numpy_include_dirs
))
setup
(
name
=
'Demos'
,
...
...
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