Skip to content

Commit 2faf021

Browse files
committed
setup: rename variable to reflect local include paths
So we can distinguish from system paths when we'll add those back in.
1 parent 6ee1221 commit 2faf021

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup_zstd.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ def get_c_extension(
5151
root = root or actual_root
5252

5353
sources = sorted(set([os.path.join(actual_root, p) for p in ext_sources]))
54-
include_dirs = [os.path.join(actual_root, d) for d in ext_includes]
54+
local_include_dirs = [os.path.join(actual_root, d) for d in ext_includes]
5555
depends = []
5656

5757
if not system_zstd:
58-
include_dirs.append(os.path.join(actual_root, "zstd"))
58+
local_include_dirs.append(os.path.join(actual_root, "zstd"))
5959
depends = sorted(glob.glob(os.path.join(actual_root, "c-ext", "*")))
6060

6161
compiler = distutils.ccompiler.new_compiler()
@@ -101,14 +101,14 @@ def get_c_extension(
101101

102102
# Python 3.7 doesn't like absolute paths. So normalize to relative.
103103
sources = [os.path.relpath(p, root) for p in sources]
104-
include_dirs = [os.path.relpath(p, root) for p in include_dirs]
104+
local_include_dirs = [os.path.relpath(p, root) for p in local_include_dirs]
105105
depends = [os.path.relpath(p, root) for p in depends]
106106

107107
# TODO compile with optimizations.
108108
return distutils.extension.Extension(
109109
name,
110110
sources,
111-
include_dirs=include_dirs,
111+
include_dirs=local_include_dirs,
112112
depends=depends,
113113
extra_compile_args=extra_args,
114114
libraries=libraries,

0 commit comments

Comments
 (0)