Skip to content

Commit

Permalink
Compile only streamlinespeed with c++ and c for the rest.
Browse files Browse the repository at this point in the history
  • Loading branch information
arokem authored and MarcCote committed Jul 2, 2014
1 parent e320cdc commit d606735
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions setup.py
Expand Up @@ -77,19 +77,19 @@

# Define extensions
EXTS = []
for modulename, other_sources in (
('dipy.reconst.recspeed', []),
('dipy.reconst.vec_val_sum', []),
('dipy.reconst.quick_squash', []),
('dipy.tracking.distances', []),
('dipy.core.streamlinespeed', []),
('dipy.tracking.vox2track', []),
('dipy.tracking.propspeed', []),
('dipy.denoise.denspeed', [])
for modulename, other_sources, language in (
('dipy.reconst.recspeed', [], 'c'),
('dipy.reconst.vec_val_sum', [], 'c'),
('dipy.reconst.quick_squash', [], 'c'),
('dipy.tracking.distances', [], 'c'),
('dipy.core.streamlinespeed', [], 'c++'),
('dipy.tracking.vox2track', [], 'c'),
('dipy.tracking.propspeed', [], 'c'),
('dipy.denoise.denspeed', [], 'c')
):
pyx_src = pjoin(*modulename.split('.')) + '.pyx'
EXTS.append(Extension(modulename,[pyx_src] + other_sources,
language = "c++",
language = language,
include_dirs = [np.get_include(), "src"]))


Expand Down

0 comments on commit d606735

Please sign in to comment.