Skip to content

Commit

Permalink
fix include
Browse files Browse the repository at this point in the history
  • Loading branch information
esheldon committed Jun 18, 2024
1 parent 253a6c9 commit 0e8bc74
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def build_extensions(self):
class MyBuilderWindows(build_ext):
def build_extensions(self):
cflags = extra_compile_args
cflags += ['-std=c++11']
# cflags += ['-std=c++11']

# Add the appropriate extra flags for that compiler.
for e in self.extensions:
Expand All @@ -162,7 +162,6 @@ def build_extensions(self):
#

# recfile
include_dirs += ["esutil/recfile"]
recfile_sources = [
"esutil/recfile/records.cpp",
"esutil/recfile/records_wrap.cpp",
Expand All @@ -172,7 +171,7 @@ def build_extensions(self):
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
sources=recfile_sources,
include_dirs=include_dirs,
include_dirs=include_dirs + ["esutil/recfile"],
)
ext_modules.append(recfile_module)
packages.append("esutil.recfile")
Expand All @@ -184,21 +183,20 @@ def build_extensions(self):
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
sources=cosmo_sources,
include_dirs=include_dirs,
include_dirs=include_dirs + ["esutil/cosmology"],
)
ext_modules.append(cosmo_module)
packages.append("esutil.cosmology")

# HTM
include_dirs += ["esutil/htm", "esutil/htm/htm_src"]
htm_sources = glob("esutil/htm/htm_src/*.cpp")
htm_sources += ["esutil/htm/htmc.cc", "esutil/htm/htmc_wrap.cc"]
htm_module = Extension(
"esutil.htm._htmc",
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
sources=htm_sources,
include_dirs=include_dirs,
include_dirs=include_dirs + ["esutil/htm", "esutil/htm/htm_src"],
)

ext_modules.append(htm_module)
Expand Down

0 comments on commit 0e8bc74

Please sign in to comment.