Skip to content

Commit

Permalink
Merge pull request #2 from kjemmett/master
Browse files Browse the repository at this point in the history
pass include_dirs to c extensions
  • Loading branch information
apetri committed Oct 13, 2015
2 parents b015765 + 5370803 commit 9fe6f89
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,25 +205,6 @@ def check_nicaea(conf):
print("[FAIL] NICAEA bindings will not be installed (either enable option or check GSL/FFTW3/NICAEA installations)")


#################################################################################################
#############################Extensions##########################################################
#################################################################################################

#Extension objects
ext = list()

for ext_module in external_sources.keys():

sources = list()
for source in external_sources[ext_module]:
sources.append(os.path.join(name,external_dir,source))

#Append external support sources too
if ext_module in external_support.keys():
sources += external_support[ext_module]

ext.append(Extension(ext_module,sources,extra_link_args=lenstools_link))

#################################################################################################
#############################Package data########################################################
#################################################################################################
Expand Down Expand Up @@ -252,6 +233,28 @@ def check_nicaea(conf):
scripts = [ fname for fname in glob.glob(os.path.join("scripts","*")) if os.path.basename(fname)!="README.rst" ]
scripts_dir = "scripts"

#################################################################################################
#############################Extensions##########################################################
#################################################################################################

#Extension objects
ext = list()

for ext_module in external_sources.keys():

sources = list()
for source in external_sources[ext_module]:
sources.append(os.path.join(name,external_dir,source))

#Append external support sources too
if ext_module in external_support.keys():
sources += external_support[ext_module]

ext.append(Extension(ext_module,
sources,
extra_link_args=lenstools_link,
include_dirs=lenstools_includes))

#################################################################################################
#############################Setup###############################################################
#################################################################################################
Expand Down

0 comments on commit 9fe6f89

Please sign in to comment.